Package zmq.socket
Enum Sockets
- java.lang.Object
-
- java.lang.Enum<Sockets>
-
- zmq.socket.Sockets
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.List<java.lang.String>
compatible
-
Constructor Summary
Constructors Modifier Constructor Description private
Sockets(java.lang.String... compatible)
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description static boolean
compatible(int self, java.lang.String peer)
static SocketBase
create(int socketType, Ctx parent, int tid, int sid)
(package private) abstract SocketBase
create(Ctx parent, int tid, int sid)
SessionBase
create(IOThread ioThread, boolean connect, SocketBase socket, Options options, Address addr)
static SessionBase
createSession(IOThread ioThread, boolean connect, SocketBase socket, Options options, Address addr)
static Sockets
fromType(int socketType)
static java.lang.String
name(int socketType)
static Sockets
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static Sockets[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
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
-
-
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 namejava.lang.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 java.lang.String name(int socketType)
-
fromType
public static Sockets fromType(int socketType)
-
compatible
public static boolean compatible(int self, java.lang.String peer)
-
-