Package org.jboss.as.protocol.mgmt
Interface ManagementBatchIdManager
-
- All Known Implementing Classes:
ManagementBatchIdManager.DefaultManagementBatchIdManager
public interface ManagementBatchIdManagerResponsible 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 Classes Modifier and Type Interface Description static classManagementBatchIdManager.DefaultManagementBatchIdManager
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description intcreateBatchId()Creates a batch id.voidfreeBatchId(int id)Frees a batch id.booleanlockBatchId(int id)Block a given batch id, when using shared transports.
-
-
-
Method Detail
-
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.
-
-