public enum SocketType extends Enum<SocketType>
Enum Constant and Description |
---|
DEALER
A socket of type ZMQ_DEALER is an advanced pattern used for extending request/reply sockets.
|
PAIR
A socket of type ZMQ_PAIR can only be connected to a single peer at any one time.
|
PUB
A socket of type ZMQ_PUB is used by a publisher to distribute data.
|
PULL
A socket of type ZMQ_PULL is used by a pipeline node to receive messages from upstream pipeline nodes.
|
PUSH
A socket of type ZMQ_PUSH is used by a pipeline node to send messages to downstream pipeline nodes.
|
REP
A socket of type ZMQ_REQ is used by a client to send requests to and receive replies from a service.
|
REQ
A socket of type ZMQ_REP is used by a service to receive requests from and send replies to a client.
|
ROUTER
A socket of type ZMQ_ROUTER is an advanced socket type used for extending request/reply sockets.
|
SUB
A socket of type ZMQ_SUB is used by a subscriber to subscribe to data distributed by a publisher.
|
XPUB
Same as ZMQ_PUB except that you can receive subscriptions from the peers in form of incoming messages.
|
XSUB
Same as ZMQ_SUB except that you subscribe by sending subscription messages to the socket.
|
Modifier and Type | Method and Description |
---|---|
org.zeromq.SocketType |
getType()
Socket type which determines the semantics of communication over the socket.
|
static SocketType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SocketType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SocketType PAIR
public static final SocketType PUB
public static final SocketType SUB
public static final SocketType REQ
public static final SocketType REP
public static final SocketType DEALER
public static final SocketType ROUTER
public static final SocketType PULL
public static final SocketType PUSH
public static final SocketType XPUB
public static final SocketType XSUB
public static SocketType[] values()
for (SocketType c : SocketType.values()) System.out.println(c);
public static SocketType valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic org.zeromq.SocketType getType()
Copyright © 2019. All rights reserved.