Package org.apache.bookkeeper.mledger
Enum LedgerOffloader.OffloadHandle.OfferEntryResult
- java.lang.Object
-
- java.lang.Enum<LedgerOffloader.OffloadHandle.OfferEntryResult>
-
- org.apache.bookkeeper.mledger.LedgerOffloader.OffloadHandle.OfferEntryResult
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<LedgerOffloader.OffloadHandle.OfferEntryResult>
- Enclosing interface:
- LedgerOffloader.OffloadHandle
public static enum LedgerOffloader.OffloadHandle.OfferEntryResult extends java.lang.Enum<LedgerOffloader.OffloadHandle.OfferEntryResult>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description FAIL_BUFFER_FULLFAIL_NOT_CONSECUTIVEFAIL_SEGMENT_CLOSEDSUCCESS
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static LedgerOffloader.OffloadHandle.OfferEntryResultvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static LedgerOffloader.OffloadHandle.OfferEntryResult[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
SUCCESS
public static final LedgerOffloader.OffloadHandle.OfferEntryResult SUCCESS
-
FAIL_BUFFER_FULL
public static final LedgerOffloader.OffloadHandle.OfferEntryResult FAIL_BUFFER_FULL
-
FAIL_SEGMENT_CLOSED
public static final LedgerOffloader.OffloadHandle.OfferEntryResult FAIL_SEGMENT_CLOSED
-
FAIL_NOT_CONSECUTIVE
public static final LedgerOffloader.OffloadHandle.OfferEntryResult FAIL_NOT_CONSECUTIVE
-
-
Method Detail
-
values
public static LedgerOffloader.OffloadHandle.OfferEntryResult[] 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 (LedgerOffloader.OffloadHandle.OfferEntryResult c : LedgerOffloader.OffloadHandle.OfferEntryResult.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static LedgerOffloader.OffloadHandle.OfferEntryResult valueOf(java.lang.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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
-