Package org.zeromq

Enum ZMonitor.Event

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<ZMonitor.Event>
    Enclosing class:
    ZMonitor

    public static enum ZMonitor.Event
    extends java.lang.Enum<ZMonitor.Event>
    Enumerates types of monitoring events.
    • Field Detail

      • MAP

        private static final java.util.Map<java.lang.Integer,​ZMonitor.Event> MAP
      • code

        private final int code
    • Constructor Detail

      • Event

        private Event​(int code)
    • Method Detail

      • values

        public static ZMonitor.Event[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (ZMonitor.Event c : ZMonitor.Event.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static ZMonitor.Event valueOf​(java.lang.String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null
      • findByCode

        public static ZMonitor.Event findByCode​(int event)
        Find the ZMonitor.Event associated with the numerical event code.
        Parameters:
        event - the numerical event code
        Returns:
        the found ZMonitor.Event