public enum DeviceType extends Enum<DeviceType>
Enum Constant and Description |
---|
FORWARDER
ZMQ_FORWARDER collects messages from a set of publishers and forwards these to a set of subscribers.
|
QUEUE
ZMQ_QUEUE creates a shared queue that collects requests from a set of clients, and distributes these fairly among
a set of services.
|
STREAMER
ZMQ_STREAMER collects tasks from a set of pushers and forwards these to a set of pullers.
|
Modifier and Type | Method and Description |
---|---|
int |
getType()
Device type connects a frontend socket to a backend socket.
|
static DeviceType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DeviceType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DeviceType STREAMER
public static final DeviceType FORWARDER
public static final DeviceType QUEUE
public static DeviceType[] values()
for (DeviceType c : DeviceType.values()) System.out.println(c);
public static DeviceType 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 int getType()
Copyright © 2019. All rights reserved.