public class LocalDataBus extends java.lang.Object implements DataBusInterface
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
LOCAL_PROTOCOL |
Constructor and Description |
---|
LocalDataBus() |
Modifier and Type | Method and Description |
---|---|
WorkflowDataPacket |
addObject(java.lang.Object data,
boolean deleteAfterUse)
Adds an object to the databus and returns the WorkflowDataPacket that can be used to identify the object.
|
java.lang.Object |
get(WorkflowDataPacket packet)
Gets the data out of the store with the provided WorkflowDataPacket
|
java.lang.String |
getProtocol()
return the protocol of the URLs minted by this databus
|
void |
putData(WorkflowDataPacket url,
java.lang.Object data)
Puts data into the databus
|
void |
remove(WorkflowDataPacket packet)
Removes the URL and the data from the store.
|
public static final java.lang.String LOCAL_PROTOCOL
public java.lang.String getProtocol()
DataBusInterface
getProtocol
in interface DataBusInterface
public void putData(WorkflowDataPacket url, java.lang.Object data)
DataBusInterface
putData
in interface DataBusInterface
public java.lang.Object get(WorkflowDataPacket packet) throws DataNotResolvableException
DataBusInterface
get
in interface DataBusInterface
DataNotResolvableException
public void remove(WorkflowDataPacket packet)
DataBusInterface
remove
in interface DataBusInterface
public WorkflowDataPacket addObject(java.lang.Object data, boolean deleteAfterUse)
DataBusInterface
addObject
in interface DataBusInterface