Search in sources :

Example 1 with GraphRequestAsyncProcessor

use of com.datastax.dse.driver.internal.core.graph.GraphRequestAsyncProcessor in project java-driver by datastax.

the class ReactiveGraphRequestProcessorTest method setUp.

@Before
public void setUp() {
    DefaultDriverContext context = mock(DefaultDriverContext.class);
    graphSupportChecker = mock(GraphSupportChecker.class);
    asyncProcessor = Mockito.spy(new GraphRequestAsyncProcessor(context, graphSupportChecker));
}
Also used : GraphRequestAsyncProcessor(com.datastax.dse.driver.internal.core.graph.GraphRequestAsyncProcessor) DefaultDriverContext(com.datastax.oss.driver.internal.core.context.DefaultDriverContext) GraphSupportChecker(com.datastax.dse.driver.internal.core.graph.GraphSupportChecker) Before(org.junit.Before)

Example 2 with GraphRequestAsyncProcessor

use of com.datastax.dse.driver.internal.core.graph.GraphRequestAsyncProcessor in project java-driver by datastax.

the class BuiltInRequestProcessors method addGraphProcessors.

public static void addGraphProcessors(DefaultDriverContext context, List<RequestProcessor<?, ?>> processors) {
    GraphRequestAsyncProcessor graphRequestAsyncProcessor = new GraphRequestAsyncProcessor(context, new GraphSupportChecker());
    GraphRequestSyncProcessor graphRequestSyncProcessor = new GraphRequestSyncProcessor(graphRequestAsyncProcessor);
    processors.add(graphRequestAsyncProcessor);
    processors.add(graphRequestSyncProcessor);
}
Also used : GraphRequestAsyncProcessor(com.datastax.dse.driver.internal.core.graph.GraphRequestAsyncProcessor) GraphSupportChecker(com.datastax.dse.driver.internal.core.graph.GraphSupportChecker) GraphRequestSyncProcessor(com.datastax.dse.driver.internal.core.graph.GraphRequestSyncProcessor)

Example 3 with GraphRequestAsyncProcessor

use of com.datastax.dse.driver.internal.core.graph.GraphRequestAsyncProcessor in project java-driver by datastax.

the class BuiltInRequestProcessors method addGraphReactiveProcessors.

public static void addGraphReactiveProcessors(DefaultDriverContext context, List<RequestProcessor<?, ?>> processors) {
    ReactiveGraphRequestProcessor reactiveGraphRequestProcessor = new ReactiveGraphRequestProcessor(new GraphRequestAsyncProcessor(context, new GraphSupportChecker()));
    processors.add(reactiveGraphRequestProcessor);
}
Also used : GraphRequestAsyncProcessor(com.datastax.dse.driver.internal.core.graph.GraphRequestAsyncProcessor) ReactiveGraphRequestProcessor(com.datastax.dse.driver.internal.core.graph.reactive.ReactiveGraphRequestProcessor) GraphSupportChecker(com.datastax.dse.driver.internal.core.graph.GraphSupportChecker)

Aggregations

GraphRequestAsyncProcessor (com.datastax.dse.driver.internal.core.graph.GraphRequestAsyncProcessor)3 GraphSupportChecker (com.datastax.dse.driver.internal.core.graph.GraphSupportChecker)3 GraphRequestSyncProcessor (com.datastax.dse.driver.internal.core.graph.GraphRequestSyncProcessor)1 ReactiveGraphRequestProcessor (com.datastax.dse.driver.internal.core.graph.reactive.ReactiveGraphRequestProcessor)1 DefaultDriverContext (com.datastax.oss.driver.internal.core.context.DefaultDriverContext)1 Before (org.junit.Before)1