Enum BucketConsumer.StoreType
- java.lang.Object
-
- java.lang.Enum<BucketConsumer.StoreType>
-
- com.couchbase.client.java.event.consumers.BucketConsumer.StoreType
-
- All Implemented Interfaces:
Serializable
,Comparable<BucketConsumer.StoreType>
- Enclosing class:
- BucketConsumer
public static enum BucketConsumer.StoreType extends Enum<BucketConsumer.StoreType>
How the event should be stored.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static BucketConsumer.StoreType
valueOf(String name)
Returns the enum constant of this type with the specified name.static BucketConsumer.StoreType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
UPSERT
public static final BucketConsumer.StoreType UPSERT
Try to upsert the document.
-
INSERT
public static final BucketConsumer.StoreType INSERT
Try to insert the document.
-
-
Method Detail
-
values
public static BucketConsumer.StoreType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (BucketConsumer.StoreType c : BucketConsumer.StoreType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static BucketConsumer.StoreType valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
-