org.zeromq
类 ZMQ.Event

java.lang.Object
  继承者 org.zeromq.ZMQ.Event
包容类:
ZMQ

public static class ZMQ.Event
extends java.lang.Object

Inner class: Event. Monitor socket event class


构造方法摘要
ZMQ.Event(int event, java.lang.Object value, java.lang.String address)
           
 
方法摘要
 java.lang.String getAddress()
          Get the address.
 int getEvent()
           
 java.lang.Object getValue()
           
static ZMQ.Event recv(ZMQ.Socket socket)
          Receive an event from a monitor socket.
static ZMQ.Event recv(ZMQ.Socket socket, int flags)
          Receive an event from a monitor socket.
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

构造方法详细信息

ZMQ.Event

public ZMQ.Event(int event,
                 java.lang.Object value,
                 java.lang.String address)
方法详细信息

getEvent

public int getEvent()

getValue

public java.lang.Object getValue()

getAddress

public java.lang.String getAddress()
Get the address. For libzmq versions 3.2.x the address will be an empty string.

返回:

recv

public static ZMQ.Event recv(ZMQ.Socket socket,
                             int flags)
                      throws ZMQException
Receive an event from a monitor socket. For libzmq versions 3.2.x the address will be an empty string.

参数:
socket - the socket
flags - the flags to apply to the receive operation.
返回:
the received event or null if no message was received.
抛出:
ZMQException

recv

public static ZMQ.Event recv(ZMQ.Socket socket)
                      throws ZMQException
Receive an event from a monitor socket. Does a blocking recv. For libzmq versions 3.2.x the address will be an empty string.

参数:
socket - the socket
返回:
the received event.
抛出:
ZMQException