public static class ZMQ.Context extends Object implements Closeable
| Modifier | Constructor and Description |
|---|---|
protected |
Context(int ioThreads)
Class constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
protected void |
construct(int ioThreads)
Initialize the JNI interface
|
protected void |
destroy()
Free all resources used by JNI interface.
|
int |
getMaxSockets()
The maximum number of sockets allowed on the context
|
ZMQ.Poller |
poller()
Deprecated.
use Poller constructor
|
ZMQ.Poller |
poller(int size)
Deprecated.
use Poller constructor
|
boolean |
setMaxSockets(int maxSockets)
Sets the maximum number of sockets allowed on the context
|
ZMQ.Socket |
socket(int type)
Create a new Socket within this context.
|
void |
term()
This is an explicit "destructor".
|
protected Context(int ioThreads)
ioThreads - size of the threads pool to handle I/O operations.public void term()
public ZMQ.Socket socket(int type)
type - the socket type.public ZMQ.Poller poller()
public ZMQ.Poller poller(int size)
size - the poller initial size.protected void construct(int ioThreads)
protected void destroy()
public void close()
close in interface Closeableclose in interface AutoCloseablepublic boolean setMaxSockets(int maxSockets)
public int getMaxSockets()