Class InternalPayloadSpace
java.lang.Object
net.messagevortex.router.operation.InternalPayloadSpace
Represents a payload space of an identity in memory for processing.
-
Constructor Summary
ConstructorsConstructorDescriptionInternalPayloadSpace(InternalPayloadSpaceStore payloadSpace, IdentityBlock identity) Creates an internal payload space and adds it to the central directory. -
Method Summary
Modifier and TypeMethodDescriptionbooleanAdd an operation to the payload space.protected booleancompact()getPayload(int id) Gets the payload of a workspace id.booleanRemove an operation from the workspace.voidsetCalculatedPayload(int id, PayloadChunk p) Sets an ephemeral payload.Sets a payload chunk.
-
Constructor Details
-
InternalPayloadSpace
Creates an internal payload space and adds it to the central directory.
- Parameters:
payloadSpace- the payload space to be addedidentity- the identity the payload space is assigned to
-
-
Method Details
-
getIdentity
-
getPayload
Gets the payload of a workspace id.
- Parameters:
id- the payload id to be fetched- Returns:
- the requested chunk or null if not found
-
setPayload
Sets a payload chunk.
- Parameters:
p- the payload chunk to be set- Returns:
- the previously set payload
-
setCalculatedPayload
Sets an ephemeral payload.
- Parameters:
id- the id of the payloadp- the payload
-
addOperation
Add an operation to the payload space.
- Parameters:
op- the operation to be added- Returns:
- true if successful
-
removeOperation
Remove an operation from the workspace.
- Parameters:
op- the operation to be removed- Returns:
- true if successful
-
compact
protected boolean compact()
-