CancellationToken (Cloud Bigtable HBase Client for Java 0.9.3-SNAPSHOT API)

com.google.cloud.bigtable.grpc.io

Class CancellationToken



  • public class CancellationToken
    extends Object
    A class for communicating that an operation has been or should be cancelled.
    Version:
    $Id: $Id
    Author:
    sduskis
    • Constructor Detail

      • CancellationToken

        public CancellationToken()
    • Method Detail

      • addListener

        public void addListener(Runnable runnable,
                                Executor executor)
        Add a listener that will be fired if and when this token is cancelled.
        Parameters:
        runnable - a Runnable object.
        executor - a Executor object.
      • cancel

        public void cancel()
        Inform listeners that the action has been / should be cancelled.


Send feedback about...

Cloud Bigtable Documentation