Package org.zeromq

Class ZMonitor.ZEvent

  • Enclosing class:
    ZMonitor

    public static final class ZMonitor.ZEvent
    extends java.lang.Object
    High-level representation of an event.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      java.lang.String address
      The address of the source of the event.
      int code
      The numerical code of the event.
      ZMonitor.Event type
      The type of the event.
      java.lang.String value
      String representation of the event value.
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private ZEvent​(ZMsg msg)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • type

        public final ZMonitor.Event type
        The type of the event. (never null)
      • code

        public final int code
        The numerical code of the event. (useful in case of unrecognized event, in which case type is ALL)
      • address

        public final java.lang.String address
        The address of the source of the event.
      • value

        public final java.lang.String value
        String representation of the event value. Nature of the value depends on the type of event. May be null
    • Constructor Detail

      • ZEvent

        private ZEvent​(ZMsg msg)
    • Method Detail

      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object