Package org.zeromq
Class ZMQ.CancellationToken
java.lang.Object
org.zeromq.ZMQ.CancellationToken
- Enclosing class:
ZMQ
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 Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
canceled
-
socket
SocketBase socket
-
-
Constructor Details
-
CancellationToken
-
-
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.
-