| Package | Description |
|---|---|
| org.zeromq |
| Modifier and Type | Method and Description |
|---|---|
ZMQ.Socket |
ZContext.createSocket(int type)
Creates a new managed socket within this ZContext instance.
|
static ZMQ.Socket |
ZThread.fork(ZContext ctx,
ZThread.IAttachedRunnable runnable,
Object... args) |
ZMQ.Socket |
ZMQ.PollItem.getSocket() |
ZMQ.Socket |
ZMQ.Poller.getSocket(int index)
Get the socket associated with an index.
|
ZMQ.Socket |
ZMQ.Context.socket(int type)
Create a new Socket within this context.
|
| Modifier and Type | Method and Description |
|---|---|
List<ZMQ.Socket> |
ZContext.getSockets() |
| Modifier and Type | Method and Description |
|---|---|
void |
ZContext.destroySocket(ZMQ.Socket s)
Destroys managed socket within this context
and remove from sockets list
|
static boolean |
ZMQ.device(int type_,
ZMQ.Socket frontend,
ZMQ.Socket backend)
Deprecated.
|
static boolean |
ZMQ.proxy(ZMQ.Socket frontend,
ZMQ.Socket backend,
ZMQ.Socket capture)
Starts the built-in 0MQ proxy in the current application thread.
|
static ZMQ.Event |
ZMQ.Event.recv(ZMQ.Socket socket)
Receive an event from a monitor socket.
|
static ZMQ.Event |
ZMQ.Event.recv(ZMQ.Socket socket,
int flags)
Receive an event from a monitor socket.
|
static ZFrame |
ZFrame.recvFrame(ZMQ.Socket socket)
Receives single frame from socket, returns the received frame object, or null if the recv
was interrupted.
|
static ZFrame |
ZFrame.recvFrame(ZMQ.Socket socket,
int flags)
Receive a new frame off the socket, Returns newly-allocated frame, or
null if there was no input waiting, or if the read was interrupted.
|
static ZMsg |
ZMsg.recvMsg(ZMQ.Socket socket)
Receives message from socket, returns ZMsg object or null if the
recv was interrupted.
|
static ZMsg |
ZMsg.recvMsg(ZMQ.Socket socket,
int flag)
Receives message from socket, returns ZMsg object or null if the
recv was interrupted.
|
int |
ZMQ.Poller.register(ZMQ.Socket socket)
Register a Socket for polling on all events.
|
int |
ZMQ.Poller.register(ZMQ.Socket socket,
int events)
Register a Socket for polling on the specified events.
|
void |
ZThread.IAttachedRunnable.run(Object[] args,
ZContext ctx,
ZMQ.Socket pipe) |
boolean |
ZMsg.send(ZMQ.Socket socket)
Send message to 0MQ socket.
|
boolean |
ZMsg.send(ZMQ.Socket socket,
boolean destroy)
Send message to 0MQ socket, destroys contents after sending if destroy param is set to true.
|
boolean |
ZFrame.send(ZMQ.Socket socket,
int flags)
Internal method to call org.zeromq.Socket send() method.
|
boolean |
ZFrame.sendAndDestroy(ZMQ.Socket socket)
Sends frame to socket if it contains data.
|
boolean |
ZFrame.sendAndDestroy(ZMQ.Socket socket,
int flags)
Sends frame to socket if it contains data.
|
boolean |
ZFrame.sendAndKeep(ZMQ.Socket socket)
Sends frame to socket if it contains any data.
|
boolean |
ZFrame.sendAndKeep(ZMQ.Socket socket,
int flags)
Sends frame to socket if it contains any data.
|
void |
ZMQ.Poller.unregister(ZMQ.Socket socket)
Unregister a Socket for polling on the specified events.
|
| Constructor and Description |
|---|
ZMQ.PollItem(ZMQ.Socket socket,
int ops) |
ZMQQueue(ZMQ.Context context,
ZMQ.Socket inSocket,
ZMQ.Socket outSocket)
Class constructor.
|
Copyright © 2014. All rights reserved.