public class DataMap
extends java.lang.Object
Constructor and Description |
---|
DataMap() |
Modifier and Type | Method and Description |
---|---|
void |
clean()
Clean the DataMap
|
void |
cleanData(java.lang.String contextName)
Clean the Data related to the context Invoke
this when the context is done.
|
void |
cleanOperationData(java.lang.String contextName,
java.lang.String operationName)
Clean the data of the operation under the
context
|
void |
putData(Data data)
Put the Data to the DataMap
|
Data |
waitAndGetData(java.lang.String contextName,
java.lang.String operationName,
long maxWaitTime)
Wait and get the data from the queue of the
operation under the context
|
public Data waitAndGetData(java.lang.String contextName, java.lang.String operationName, long maxWaitTime) throws java.lang.InterruptedException
contextName
- the name of the contextoperationName
- the name of the operationmaxWaitTime
- maximum waiting timejava.lang.InterruptedException
public void putData(Data data)
data
- the Data to be putpublic void cleanOperationData(java.lang.String contextName, java.lang.String operationName)
contextName
- the name of the contextoperationName
- the name of the operationpublic void cleanData(java.lang.String contextName)
contextName
- the name of the contextpublic void clean()