Package zmq.socket

Enum Sockets

All Implemented Interfaces:
Serializable, Comparable<Sockets>, java.lang.constant.Constable

public enum Sockets extends Enum<Sockets>
  • Enum Constant Details

    • 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 Details

    • compatible

      private final List<String> compatible
  • Constructor Details

    • Sockets

      private Sockets(String... compatible)
  • Method Details

    • values

      public static Sockets[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static Sockets valueOf(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:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null
    • create

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

      public SessionBase create(IOThread ioThread, boolean connect, SocketBase socket, Options options, Address addr)
    • createSession

      public static SessionBase createSession(IOThread ioThread, boolean connect, SocketBase socket, Options options, Address addr)
    • create

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

      public static String name(int socketType)
    • fromType

      public static Sockets fromType(int socketType)
    • compatible

      public static boolean compatible(int self, String peer)