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

public abstract class BaseSyncParams<T> extends Object implements SyncArgs<T>
  • Constructor Details

    • BaseSyncParams

      public BaseSyncParams()
  • Method Details

    • syncMode

      public T syncMode(SyncMode syncMode)
      Description copied from interface: SyncArgs
      Sets the synchronization mode to be used for current operation.

      Default value is SyncMode.AUTO

      Specified by:
      syncMode in interface SyncArgs<T>
      Parameters:
      syncMode - the synchronization mode
      Returns:
      arguments object
      See Also:
    • syncFailureMode

      public T syncFailureMode(SyncFailureMode syncFailureMode)
      Description copied from interface: SyncArgs
      Sets the behavior when synchronization with secondary nodes fails.

      Default value is SyncFailureMode.LOG_WARNING

      Specified by:
      syncFailureMode in interface SyncArgs<T>
      Parameters:
      syncFailureMode - the failure handling mode
      Returns:
      The current instance for method chaining
      See Also:
    • syncTimeout

      public T syncTimeout(Duration timeout)
      Description copied from interface: SyncArgs
      Sets 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:
      syncTimeout in interface SyncArgs<T>
      Parameters:
      timeout - The maximum time to wait for synchronization to complete
      Returns:
      arguments object
    • getSyncMode

      public SyncMode getSyncMode()
    • getSyncFailureMode

      public SyncFailureMode getSyncFailureMode()
    • getSyncTimeout

      public long getSyncTimeout()