public static enum JerseyPublisher.PublisherStrategy extends Enum<JerseyPublisher.PublisherStrategy>
| Enum Constant and Description |
|---|
BEST_EFFORT
Best effort publisher strategy - tries to deliver to all subscribers if possible without blocking the processing.
|
BLOCKING
Blocking publisher strategy - tries to deliver to all subscribers regardless the cost.
|
| Modifier and Type | Method and Description |
|---|---|
static JerseyPublisher.PublisherStrategy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static JerseyPublisher.PublisherStrategy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final JerseyPublisher.PublisherStrategy BLOCKING
public static final JerseyPublisher.PublisherStrategy BEST_EFFORT
onError() and cancels subscription on a subscriber, that is not
capable of read the messages at a speed sufficient to unblock the processing.public static JerseyPublisher.PublisherStrategy[] values()
for (JerseyPublisher.PublisherStrategy c : JerseyPublisher.PublisherStrategy.values()) System.out.println(c);
public static JerseyPublisher.PublisherStrategy 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 © 2007-2024, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.