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() |
boolean |
getBlocky() |
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 |
setBlocky(boolean block) |
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 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 boolean getBlocky()
public boolean setBlocky(boolean block)
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 Closeable
close
in interface AutoCloseable
Copyright © 2016. All rights reserved.