Interface ManagementBatchIdManager

All Known Implementing Classes:
ManagementBatchIdManager.DefaultManagementBatchIdManager

public interface ManagementBatchIdManager
Responsible for generating new unique batch ids on the server side of a channel. The batch ids are used to group several individual channel requests that make up a larger use case.
Version:
$Revision: 1.1 $
Author:
Kabir Khan
  • Method Details

    • lockBatchId

      boolean lockBatchId(int id)
      Block a given batch id, when using shared transports.
      Parameters:
      id - the id
      Returns:
      true if this did not already contain the id
    • createBatchId

      int createBatchId()
      Creates a batch id. Once the batch has completed freeBatchId(int) must be called.
      Returns:
      the created batch id
    • freeBatchId

      void freeBatchId(int id)
      Frees a batch id.
      Parameters:
      id - the batch id to be freed.