Package io.aeron.logbuffer
Enum Class ControlledFragmentHandler.Action
java.lang.Object
java.lang.Enum<ControlledFragmentHandler.Action>
io.aeron.logbuffer.ControlledFragmentHandler.Action
- All Implemented Interfaces:
Serializable,Comparable<ControlledFragmentHandler.Action>,Constable
- Enclosing interface:
- ControlledFragmentHandler
Action to be taken on return from
ControlledFragmentHandler.onFragment(DirectBuffer, int, int, Header).-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAbort the current polling operation and do not advance the position for this fragment.Break from the current polling operation and commit the position as of the end of the current fragment being handled.Continue processing but commit the position as of the end of the current fragment so that flow control is applied to this point.Continue processing until fragment limit or no fragments with position commit at end of poll as the inControlledFragmentHandler.onFragment(DirectBuffer, int, int, Header). -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.static ControlledFragmentHandler.Action[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ABORT
Abort the current polling operation and do not advance the position for this fragment. -
BREAK
Break from the current polling operation and commit the position as of the end of the current fragment being handled. -
COMMIT
Continue processing but commit the position as of the end of the current fragment so that flow control is applied to this point. -
CONTINUE
Continue processing until fragment limit or no fragments with position commit at end of poll as the inControlledFragmentHandler.onFragment(DirectBuffer, int, int, Header).
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-