@InterfaceStability.Experimental @InterfaceAudience.Private public enum ConnectionType extends Enum<ConnectionType>
Type of DCP connection.
It specifies which kind of connection the client have to initiate as a sender. For example, if the sender wants to pull the data from server, it need to choose CONSUMER
.
Modifier and Type | Method and Description |
---|---|
int |
flags() |
static ConnectionType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ConnectionType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ConnectionType PRODUCER
public static final ConnectionType CONSUMER
public static ConnectionType[] values()
for (ConnectionType c : ConnectionType.values()) System.out.println(c);
public static ConnectionType 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 int flags()
Copyright © 2016 Couchbase, Inc.. All rights reserved.