Package org.zeromq

Class ZMQ.CancellationToken

java.lang.Object
org.zeromq.ZMQ.CancellationToken
Enclosing class:
ZMQ

public static class ZMQ.CancellationToken extends Object
A cancellation token that allows canceling ongoing Socket send/receive operations. When calling send/receive you can provide the cancellation token as an additional parameter. To create a cancellation token call ZMQ.Socket.createCancellationToken().
  • Field Details

  • Constructor Details

    • CancellationToken

      protected CancellationToken(SocketBase socket)
  • Method Details

    • isCancellationRequested

      public boolean isCancellationRequested()
    • reset

      public void reset()
      Reset the cancellation token in order to reuse the token with another send/receive call.
    • cancel

      public void cancel()
      Cancel a pending the send/receive operation.