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));
}
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);
}
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);
}
Aggregations