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() |
boolean |
close(Selector selector)
Closes a Selector that was created within this context.
|
boolean |
getBlocky()
Deprecated.
use
isBlocky() instead |
int |
getIOThreads()
The size of the 0MQ thread pool to handle I/O operations.
|
boolean |
getIPv6() |
int |
getMaxSockets()
The maximum number of sockets allowed on the context
|
boolean |
isBlocky() |
boolean |
isClosed() |
boolean |
isIPv6() |
boolean |
isTerminated()
Returns true if terminate() has been called on ctx.
|
ZMQ.Poller |
poller()
Create a new Poller within this context, with a default size.
|
ZMQ.Poller |
poller(int size)
Create a new Poller within this context, with a specified initial size.
|
Selector |
selector()
Create a new Selector within this context.
|
boolean |
setBlocky(boolean block) |
boolean |
setIOThreads(int ioThreads)
Set the size of the 0MQ thread pool to handle I/O operations.
|
boolean |
setIPv6(boolean ipv6) |
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 boolean isTerminated()
public int getIOThreads()
public boolean setIOThreads(int ioThreads)
public int getMaxSockets()
public boolean setMaxSockets(int maxSockets)
@Deprecated public boolean getBlocky()
isBlocky() insteadpublic boolean isBlocky()
public boolean setBlocky(boolean block)
public boolean isIPv6()
public boolean getIPv6()
public boolean setIPv6(boolean ipv6)
public void term()
public boolean isClosed()
public ZMQ.Socket socket(int type)
type - the socket type.public Selector selector()
public boolean close(Selector selector)
selector - the Selector to close.public ZMQ.Poller poller()
ZMQ.Poller.close()public ZMQ.Poller poller(int size)
ZMQ.Poller.close()size - the poller initial size.public void close()
close in interface Closeableclose in interface AutoCloseableCopyright © 2017. All rights reserved.