public static class ZMQ.CancellationToken
extends java.lang.Object
ZMQ.Socket.createCancellationToken()
.Modifier and Type | Field and Description |
---|---|
protected java.util.concurrent.atomic.AtomicBoolean |
canceled |
(package private) SocketBase |
socket |
Modifier | Constructor and Description |
---|---|
protected |
CancellationToken(SocketBase socket) |
Modifier and Type | Method and Description |
---|---|
void |
cancel()
Cancel a pending the send/receive operation.
|
boolean |
isCancellationRequested() |
void |
reset()
Reset the cancellation token in order to reuse the token with another send/receive call.
|
protected java.util.concurrent.atomic.AtomicBoolean canceled
SocketBase socket
protected CancellationToken(SocketBase socket)