Enum Class FlowControlMode
- All Implemented Interfaces:
Serializable,Comparable<FlowControlMode>,java.lang.constant.Constable
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionIn this mode,MutationandDeletionevents are automatically acknowledged prior to dispatch to theDatabaseChangeListener.In this mode, the listener is responsible for callingDocumentChange.flowControlAck()after eachMutationandDeletionevent is processed. -
Method Summary
Modifier and TypeMethodDescriptionstatic FlowControlModeReturns the enum constant of this class with the specified name.static FlowControlMode[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
AUTOMATIC
In this mode,MutationandDeletionevents are automatically acknowledged prior to dispatch to theDatabaseChangeListener.Suitable for listeners whose
DatabaseChangeListener.onMutation(Mutation)andDatabaseChangeListener.onDeletion(Deletion)methods either completely process the event (for example, by writing it to disk) or implictly generate backpressure (for example, by writing the event to a bounded blocking queue). -
MANUAL
In this mode, the listener is responsible for callingDocumentChange.flowControlAck()after eachMutationandDeletionevent is processed.NOTE: This mode is not recommended, since it can be difficult to ensure events are acknowledged on all code paths, and failure to ACK can cause the server to stop sending events.
-
-
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
-