| java.lang.Object org.apache.wsif.base.WSIFDefaultCorrelationService
WSIFDefaultCorrelationService | public class WSIFDefaultCorrelationService implements WSIFCorrelationService(Code) | | WSIFDefaultCorrelationService provides a default implementation of a
WSIFCorrelationService using a Hashmap as the backing store.
author: Ant Elder |
Method Summary | |
public synchronized Serializable | get(WSIFCorrelationId id) Retrieves an entry (a WSIFOperation) from the correlation service.
Parameters: id - the key of the state to retrieved the state associated with the id, or null if there is nomatch for the id. | public synchronized void | put(WSIFCorrelationId correlator, Serializable state, long timeout) Adds an entry to the correlation service.
Parameters: correlator - the key to associate with the state. | public synchronized void | remove(WSIFCorrelationId id) Removes an entry form the correlation service. | public void | shutdown() Shutsdown the correlation service. |
WSIFDefaultCorrelationService | public WSIFDefaultCorrelationService()(Code) | | WSIFCorrelationServiceLocator should be used to
create a correlation service.
|
get | public synchronized Serializable get(WSIFCorrelationId id) throws WSIFException(Code) | | Retrieves an entry (a WSIFOperation) from the correlation service.
Parameters: id - the key of the state to retrieved the state associated with the id, or null if there is nomatch for the id. |
put | public synchronized void put(WSIFCorrelationId correlator, Serializable state, long timeout) throws WSIFException(Code) | | Adds an entry to the correlation service.
Parameters: correlator - the key to associate with the state. This will be a JMS message correlation ID. Parameters: state - the state to be stored. This will be a WSIFOperation. Parameters: timeout - a timeout period after which the key and associatedstate will be deleted from the correlation service. Avalue of zero indicates there should be no timeout. |
remove | public synchronized void remove(WSIFCorrelationId id) throws WSIFException(Code) | | Removes an entry form the correlation service.
Parameters: id - the key of entry to be removed |
shutdown | public void shutdown()(Code) | | Shutsdown the correlation service.
|
|
|