public static enum BacklogQuota.RetentionPolicy extends Enum<BacklogQuota.RetentionPolicy>
| Enum Constant and Description |
|---|
consumer_backlog_eviction
Policy which evicts the oldest message from the slowest consumer's backlog.
|
producer_exception
Policy which throws javax.jms.ResourceAllocationException to the producer.
|
producer_request_hold
Policy which holds producer's send request until the resource becomes available (or holding times out).
|
| Modifier and Type | Method and Description |
|---|---|
static BacklogQuota.RetentionPolicy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static BacklogQuota.RetentionPolicy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final BacklogQuota.RetentionPolicy producer_request_hold
public static final BacklogQuota.RetentionPolicy producer_exception
public static final BacklogQuota.RetentionPolicy consumer_backlog_eviction
public static BacklogQuota.RetentionPolicy[] values()
for (BacklogQuota.RetentionPolicy c : BacklogQuota.RetentionPolicy.values()) System.out.println(c);
public static BacklogQuota.RetentionPolicy 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 © 2017–2022 Apache Software Foundation. All rights reserved.