Interface OCommandDistributedReplicateRequest


public interface OCommandDistributedReplicateRequest
Interface to know if the command must be distributed in clustered scenario.
Author:
Luca Garulli
  • Method Details

    • getDistributedExecutionMode

      Returns the execution mode when distributed configuration is active:
      • LOCAL: executed on local node only
      • REPLICATE: executed on all the nodes and expect the same result
      • SHARDED: executed on all the involved nodes and merge results
    • getDistributedResultManagement

      Returns how to manage the distributed result between:
      • CHECK_FOR_EQUALS: all results must be the same
      • MERGE: merges results. This is typically used on sharding
    • getQuorumType

      Returns the quorum type for the command:
      • NONE: no quorum
      • READ: configured Read quorum
      • WRITE: configured Write quorum
      • ALL: all nodes
    • getDistributedTimeout

      long getDistributedTimeout()
      Returns the distributed timeout in milliseconds.
    • getUndoCommand

      String getUndoCommand()
      Returns the undo command if any.
    • isDistributedExecutingOnLocalNodeFirst

      boolean isDistributedExecutingOnLocalNodeFirst()
      Returns true if the command is executed on local node first and then distributed, or false if it's executed to all the servers at the same time.