public enum SubscriptionOption extends Enum<SubscriptionOption>
StreamMessage.| Enum Constant and Description |
|---|
NOTIFY_CANCELLATION
To get notified by
Subscriber.onError(Throwable) even when the StreamMessage is
cancelled. |
WITH_POOLED_OBJECTS
To receive the pooled
ByteBuf and ByteBufHolder as is, without making a copy. |
| Modifier and Type | Method and Description |
|---|---|
static SubscriptionOption |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SubscriptionOption[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SubscriptionOption WITH_POOLED_OBJECTS
ByteBuf and ByteBufHolder as is, without making a copy.
If you don't know what this means, do not specify this when you subscribe the StreamMessage.public static final SubscriptionOption NOTIFY_CANCELLATION
Subscriber.onError(Throwable) even when the StreamMessage is
cancelled.public static SubscriptionOption[] values()
for (SubscriptionOption c : SubscriptionOption.values()) System.out.println(c);
public static SubscriptionOption 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 © 2020 LeanCloud. All rights reserved.