public static enum MessageProducer.Delivery extends Enum<MessageProducer.Delivery>
Delivery policies define how messages are delivered to consumers once persisted in the Atomix cluster. When sending
messages directly to a specific member of a group, delivery policies typically do not apply. However, for producers
created via the group-wide MessageClient, delivery policies allow producers to control how the cluster
delivers messages to producers.
DIRECT producers send messages directly to
specific group members. This option applies only to producers constructed from GroupMember
messaging clients.RANDOM producers send each message to a random
member of the group. In the event that a message is not successfully acknowledged by a
member and that member fails or leaves the group, random messages will be redelivered to remaining members
of the group.BROADCAST producers send messages to all available
members of a group. This option applies only to producers constructed from DistributedGroup
messaging clients.| Enum Constant and Description |
|---|
BROADCAST
Sends messages to all available members of a group.
|
DIRECT
Sends messages directly to specific group members.
|
RANDOM
Sends each message to a random member of the group.
|
| Modifier and Type | Method and Description |
|---|---|
static MessageProducer.Delivery |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static MessageProducer.Delivery[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MessageProducer.Delivery DIRECT
GroupMember messaging clients.public static final MessageProducer.Delivery RANDOM
acknowledged by a member and that member fails or leaves the group, random messages
will be redelivered to remaining members of the group.public static final MessageProducer.Delivery BROADCAST
DistributedGroup messaging clients.public static MessageProducer.Delivery[] values()
for (MessageProducer.Delivery c : MessageProducer.Delivery.values()) System.out.println(c);
public static MessageProducer.Delivery 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 nullCopyright © 2013–2017. All rights reserved.