Package org.springframework.cassandra.core

Examples of org.springframework.cassandra.core.Cancellable


  @Test(expected = CancellationException.class)
  public void testString_AsynchronousQueryListener_Cancelled() throws InterruptedException {
    new AsynchronousQueryListenerTestTemplate() {
      @Override
      void doAsyncQuery(Book b, BasicListener listener) {
        Cancellable qc = t.queryAsynchronously(cql(b), listener);
        qc.cancel();
      }
    }.test();
  }
View Full Code Here


    if (entities == null || entities.size() == 0) {
      if (logger.isWarnEnabled()) {
        logger.warn("no-op due to given null or empty list");
      }
      return new Cancellable() {

        @Override
        public void cancel() {
          if (logger.isWarnEnabled()) {
            logger.warn("no-op query cancellation due to given null or empty list");
View Full Code Here

TOP

Related Classes of org.springframework.cassandra.core.Cancellable

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.