public static enum StreamEndMessage.Reason extends Enum<StreamEndMessage.Reason>
Enum Constant and Description |
---|
CLOSED
This indicates that the close stream command was invoked on this stream
causing it to be closed by force.
|
DISCONNECTED
The stream is closing because the connection is being disconnected.
|
OK
The stream has finished without error.
|
STATE_CHANGED
The state of the VBucket that is being streamed has changed to state
that the consumer does not want to receive.
|
TOO_SLOW
The stream is closing because the client cannot read from the stream
fast enough.
|
UNKNOWN |
Modifier and Type | Method and Description |
---|---|
int |
flags() |
static StreamEndMessage.Reason |
valueOf(int flags) |
static StreamEndMessage.Reason |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static StreamEndMessage.Reason[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final StreamEndMessage.Reason OK
public static final StreamEndMessage.Reason CLOSED
public static final StreamEndMessage.Reason STATE_CHANGED
public static final StreamEndMessage.Reason DISCONNECTED
public static final StreamEndMessage.Reason TOO_SLOW
public static final StreamEndMessage.Reason UNKNOWN
public static StreamEndMessage.Reason[] values()
for (StreamEndMessage.Reason c : StreamEndMessage.Reason.values()) System.out.println(c);
public static StreamEndMessage.Reason 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 static StreamEndMessage.Reason valueOf(int flags)
public int flags()
Copyright © 2016 Couchbase, Inc.. All rights reserved.