@Immutable public static enum ResultCodes.AckResult extends Enum<ResultCodes.AckResult> implements ResultCodes.AckCode
Enum Constant and Description |
---|
CANCELED |
INVALID_ARGUMENT |
LIMIT_BYTES |
LIMIT_MESSAGES |
NOT_CONNECTED |
NOT_READY |
NOT_SUPPORTED |
REFUSED |
STORAGE_FAILURE |
SUCCESS |
TIMEOUT |
UNKNOWN |
Modifier and Type | Method and Description |
---|---|
ResultCodes.GenericResult |
getGeneralResult() |
ResultCodes.AckResult |
getOperationResult() |
static ResultCodes.AckResult |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ResultCodes.AckResult[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
isLimitBytes, isLimitMessages, isStorageFailure
isCanceled, isFailure, isInvalidArgument, isNotConnected, isNotReady, isNotSupproted, isRefused, isSuccess, isTimeout, isUnknown
public static final ResultCodes.AckResult SUCCESS
public static final ResultCodes.AckResult UNKNOWN
public static final ResultCodes.AckResult TIMEOUT
public static final ResultCodes.AckResult NOT_CONNECTED
public static final ResultCodes.AckResult CANCELED
public static final ResultCodes.AckResult NOT_SUPPORTED
public static final ResultCodes.AckResult REFUSED
public static final ResultCodes.AckResult INVALID_ARGUMENT
public static final ResultCodes.AckResult NOT_READY
public static final ResultCodes.AckResult LIMIT_MESSAGES
public static final ResultCodes.AckResult LIMIT_BYTES
public static final ResultCodes.AckResult STORAGE_FAILURE
public static ResultCodes.AckResult[] values()
for (ResultCodes.AckResult c : ResultCodes.AckResult.values()) System.out.println(c);
public static ResultCodes.AckResult 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 ResultCodes.AckResult getOperationResult()
getOperationResult
in interface ResultCodes.OperationResultCode<ResultCodes.AckResult>
public ResultCodes.GenericResult getGeneralResult()
getGeneralResult
in interface ResultCodes.GenericCode
Copyright © 2023 Bloomberg L.P.. All rights reserved.