Package org.redisson.api
Class BaseSyncParams<T>
java.lang.Object
org.redisson.api.BaseSyncParams<T>
- All Implemented Interfaces:
SyncArgs<T>
- Direct Known Subclasses:
FanoutPublishParams,QueueAckParams,QueueAddParams,QueueMoveParams,QueueNegativeAckParams,QueuePollParams,QueueRemoveParams
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlongsyncFailureMode(SyncFailureMode syncFailureMode) Sets the behavior when synchronization with secondary nodes fails.Sets the synchronization mode to be used for current operation.syncTimeout(Duration timeout) Sets the timeout duration for synchronization of the current operation.
-
Constructor Details
-
BaseSyncParams
public BaseSyncParams()
-
-
Method Details
-
syncMode
Description copied from interface:SyncArgsSets the synchronization mode to be used for current operation.Default value is SyncMode.AUTO
-
syncFailureMode
Description copied from interface:SyncArgsSets the behavior when synchronization with secondary nodes fails.Default value is SyncFailureMode.LOG_WARNING
- Specified by:
syncFailureModein interfaceSyncArgs<T>- Parameters:
syncFailureMode- the failure handling mode- Returns:
- The current instance for method chaining
- See Also:
-
syncTimeout
Description copied from interface:SyncArgsSets the timeout duration for synchronization of the current operation. Defines how long the system will wait for acknowledgment from secondary nodes.Default value is 1 second.
- Specified by:
syncTimeoutin interfaceSyncArgs<T>- Parameters:
timeout- The maximum time to wait for synchronization to complete- Returns:
- arguments object
-
getSyncMode
-
getSyncFailureMode
-
getSyncTimeout
public long getSyncTimeout()
-