Package me.hsgamer.hscore.request
Class RequestManager<I,D> 
java.lang.Object
me.hsgamer.hscore.request.RequestManager<I,D> 
- Type Parameters:
- I- the type of the identifier
- D- the type of the data
The generic request manager
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionaddRequest(I identifier) Add a requestvoidcompleteRequest(I identifier, D data) Complete the request of the identifier.voidcompleteRequest(I identifier, D data, boolean handleAll) Complete the request of the identifiervoidremoveRequest(I identifier) Remove a requestvoidremoveRequests(I identifier) Remove all requests
- 
Constructor Details- 
RequestManagerpublic RequestManager()
 
- 
- 
Method Details- 
addRequestAdd a request- Parameters:
- identifier- the identifier
- Returns:
- the data future
 
- 
removeRequestsRemove all requests- Parameters:
- identifier- the identifier
 
- 
removeRequestRemove a request- Parameters:
- identifier- the identifier
 
- 
completeRequestComplete the request of the identifier- Parameters:
- identifier- the identifier
- data- the data
- handleAll- if true, all requests will be completed
 
- 
completeRequestComplete the request of the identifier. This method will handle only one request.- Parameters:
- identifier- the identifier
- data- the data
 
 
-