public static class ZMQ.Context extends Object implements Closeable
| Modifier | Constructor and Description |
|---|---|
protected |
ZMQ.Context(int ioThreads)
Class constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
int |
getIOThreads()
The size of the 0MQ thread pool to handle I/O operations.
|
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 |
setIOThreads(int ioThreads)
Set the size of the 0MQ thread pool to handle I/O operations.
|
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 ZMQ.Context(int ioThreads)
ioThreads - size of the threads pool to handle I/O operations.public int getIOThreads()
public boolean setIOThreads(int ioThreads)
public int getMaxSockets()
public boolean setMaxSockets(int maxSockets)
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.public void close()
close in interface Closeableclose in interface AutoCloseableCopyright © 2014. All rights reserved.