|
|||||||||
| 上一个类 下一个类 | 框架 无框架 | ||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | ||||||||
java.lang.Objectorg.zeromq.ZMQ.Context
public static class ZMQ.Context
Inner class: Context.
| 构造方法摘要 | |
|---|---|
protected |
ZMQ.Context(int ioThreads)
Class constructor. |
| 方法摘要 | |
|---|---|
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()
已过时。 use Poller constructor |
ZMQ.Poller |
poller(int size)
已过时。 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". |
| 从类 java.lang.Object 继承的方法 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| 构造方法详细信息 |
|---|
protected ZMQ.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()
java.io.Closeable 中的 closepublic boolean setMaxSockets(int maxSockets)
public int getMaxSockets()
|
|||||||||
| 上一个类 下一个类 | 框架 无框架 | ||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | ||||||||