Package org.zeromq

Class ZMQ.Event

java.lang.Object
org.zeromq.ZMQ.Event
Enclosing class:
ZMQ

public static class ZMQ.Event extends Object
Inner class: Event. Monitor socket event class
  • Field Details

    • event

      private final int event
    • value

      private final Object value
    • address

      private final String address
  • Constructor Details

    • Event

      public Event(int event, Object value, String address)
  • Method Details

    • recv

      public static ZMQ.Event recv(ZMQ.Socket socket, int flags)
      Receive an event from a monitor socket.
      Parameters:
      socket - the socket
      flags - the flags to apply to the receive operation.
      Returns:
      the received event or null if no message was received.
      Throws:
      ZMQException
    • recv

      public static ZMQ.Event recv(ZMQ.Socket socket)
      Receive an event from a monitor socket. Does a blocking recv.
      Parameters:
      socket - the socket
      Returns:
      the received event.
      Throws:
      ZMQException
    • getEvent

      public int getEvent()
    • getValue

      public Object getValue()
    • getAddress

      public String getAddress()