How to stop executeWithCallback?

24 views
Skip to first unread message

Eugene Strokin

unread,
Aug 8, 2014, 11:09:59 AM8/8/14
to astyanax-cas...@googlegroups.com
I have a callback on getAllRows like this:

AstyanaxClient.getKeyspace(keyspace).prepareQuery(cfEntity)
         
.getAllRows()
         
.setRowLimit(1000)
         
.withColumnSlice(columnName)
         
.setRepeatLastToken(false)
         
.executeWithCallback(new RowCallback<String, String>(){

               @Override                    
                              public void success(Rows<String, String> rows) {
.........


In some cases I need to stop the execution from the success method.

Is any way to do this, or I need to wait until all dataset is done paginating?

Thanks,

Eugene

Mast Sm

unread,
Oct 7, 2014, 2:23:32 PM10/7/14
to astyanax-cas...@googlegroups.com
It should return a future which you can try cancelling.
Reply all
Reply to author
Forward
0 new messages