Package org.jboss.as.protocol.mgmt
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
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic class -
Method Summary
Modifier and TypeMethodDescriptionintCreates a batch id.voidfreeBatchId(int id) Frees a batch id.booleanlockBatchId(int id) Block a given batch id, when using shared transports.
-
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 completedfreeBatchId(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.
-