Reputation: 542
Datastax java driver 4.6 version I dont see support in object mapper for Batch/async queries
Is there any workaround for it? Any reason why objectmapper has no batch/async support?
Previous version there was MappingManager using which batch and async queries were suppported
Upvotes: 2
Views: 511
Reputation: 87299
Everything is regulated by return type of declared function:
CompletionStage<SomeClass>
or CompletableFuture<SomeClass>
return typeBoundStatement
return type, and put that bound statement into batch that is executed via session.execute
, or session.executeAsync
.Upvotes: 2