Interface MutableDistributionState

All Superinterfaces:
DistributionState
All Known Implementing Classes:
DbDistributionState

public interface MutableDistributionState extends DistributionState
  • Method Details

    • addCommandDistribution

      void addCommandDistribution(long distributionKey, CommandDistributionRecord commandDistributionRecord)
      Adds a distribution to the state
      Parameters:
      distributionKey - the key of the distribution
      commandDistributionRecord - the distribution record that needs to be stored
    • removeCommandDistribution

      void removeCommandDistribution(long distributionKey)
      Removed a distribution from the state
      Parameters:
      distributionKey - the key of the distribution that will be removed
    • addRetriableDistribution

      void addRetriableDistribution(long distributionKey, int partition)
      Adds a retriable distribution to the state
      Parameters:
      distributionKey - the key of the distribution
      partition - the partition for which the distribution is retriable
    • removeRetriableDistribution

      void removeRetriableDistribution(long distributionKey, int partition)
      Removes a retriable distribution from the state
      Parameters:
      distributionKey - the key of the retriable distribution that will be removed
      partition - the partition of the retriable distribution that will be removed
    • addPendingDistribution

      void addPendingDistribution(long distributionKey, int partition)
      Adds a pending distribution to the state
      Parameters:
      distributionKey - the key of the distribution
      partition - the partition for which the distribution is pending
    • removePendingDistribution

      void removePendingDistribution(long distributionKey, int partition)
      Removes a pending distribution from the state
      Parameters:
      distributionKey - the key of the pending distribution that will be removed
      partition - the partition of the pending distribution that will be removed
    • enqueueCommandDistribution

      void enqueueCommandDistribution(String queue, long distributionKey, int partition)
      Adds a distribution to the given queue for the given partition,
      Parameters:
      queue - the queue to which the distribution should be added
      distributionKey - the key of the distribution
      partition - the partition for which the distribution is queued
    • removeQueuedDistribution

      void removeQueuedDistribution(String queue, int partitionId, long distributionKey)
      Removes the queued distribution from the queue
    • addContinuationCommand

      void addContinuationCommand(long key, CommandDistributionRecord commandDistributionRecord)
    • removeContinuationCommand

      void removeContinuationCommand(long key, String queue)