Enum BucketConfigRefreshFailedEvent.Reason
- java.lang.Object
-
- java.lang.Enum<BucketConfigRefreshFailedEvent.Reason>
-
- com.couchbase.client.core.cnc.events.config.BucketConfigRefreshFailedEvent.Reason
-
- All Implemented Interfaces:
Serializable
,Comparable<BucketConfigRefreshFailedEvent.Reason>
- Enclosing class:
- BucketConfigRefreshFailedEvent
public static enum BucketConfigRefreshFailedEvent.Reason extends Enum<BucketConfigRefreshFailedEvent.Reason>
The reason with severity for the failure.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description INDIVIDUAL_REQUEST_FAILED
An individual request for a poll/stream failed.NO_BUCKET_FOUND
Usually because the bucket is not open/no config there at the given point in time.STREAM_CLOSED
A http config stream closed without error.STREAM_FAILED
A http config stream closed with an error.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static BucketConfigRefreshFailedEvent.Reason
valueOf(String name)
Returns the enum constant of this type with the specified name.static BucketConfigRefreshFailedEvent.Reason[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NO_BUCKET_FOUND
public static final BucketConfigRefreshFailedEvent.Reason NO_BUCKET_FOUND
Usually because the bucket is not open/no config there at the given point in time.
-
INDIVIDUAL_REQUEST_FAILED
public static final BucketConfigRefreshFailedEvent.Reason INDIVIDUAL_REQUEST_FAILED
An individual request for a poll/stream failed.
-
STREAM_CLOSED
public static final BucketConfigRefreshFailedEvent.Reason STREAM_CLOSED
A http config stream closed without error.
-
STREAM_FAILED
public static final BucketConfigRefreshFailedEvent.Reason STREAM_FAILED
A http config stream closed with an error.
-
-
Method Detail
-
values
public static BucketConfigRefreshFailedEvent.Reason[] 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 (BucketConfigRefreshFailedEvent.Reason c : BucketConfigRefreshFailedEvent.Reason.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static BucketConfigRefreshFailedEvent.Reason 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
-
-