Package zmq.socket

Enum Sockets

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<Sockets>

    public enum Sockets
    extends java.lang.Enum<Sockets>
    • Enum Constant Detail

      • PAIR

        public static final Sockets PAIR
      • PUB

        public static final Sockets PUB
      • SUB

        public static final Sockets SUB
      • REQ

        public static final Sockets REQ
      • REP

        public static final Sockets REP
      • DEALER

        public static final Sockets DEALER
      • ROUTER

        public static final Sockets ROUTER
      • PULL

        public static final Sockets PULL
      • PUSH

        public static final Sockets PUSH
      • XPUB

        public static final Sockets XPUB
      • XSUB

        public static final Sockets XSUB
      • STREAM

        public static final Sockets STREAM
      • SERVER

        public static final Sockets SERVER
      • CLIENT

        public static final Sockets CLIENT
      • RADIO

        public static final Sockets RADIO
      • DISH

        public static final Sockets DISH
      • CHANNEL

        public static final Sockets CHANNEL
      • PEER

        public static final Sockets PEER
      • RAW

        public static final Sockets RAW
      • SCATTER

        public static final Sockets SCATTER
      • GATHER

        public static final Sockets GATHER
    • Field Detail

      • compatible

        private final java.util.List<java.lang.String> compatible
    • Constructor Detail

      • Sockets

        private Sockets​(java.lang.String... compatible)
    • Method Detail

      • values

        public static Sockets[] 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 (Sockets c : Sockets.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static Sockets 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
      • create

        abstract SocketBase create​(Ctx parent,
                                   int tid,
                                   int sid)
      • create

        public static SocketBase create​(int socketType,
                                        Ctx parent,
                                        int tid,
                                        int sid)
      • name

        public static java.lang.String name​(int socketType)
      • fromType

        public static Sockets fromType​(int socketType)
      • compatible

        public static boolean compatible​(int self,
                                         java.lang.String peer)