Class PayloadOperation
java.lang.Object
pt.unl.fct.di.novasys.babel.protocols.storage.operations.common.CommonOperation
pt.unl.fct.di.novasys.babel.protocols.storage.operations.PayloadOperation
- Direct Known Subclasses:
OperationWithConditions
A operation containing a payload (represented as a byte []).
-
Field Summary
Fields inherited from class pt.unl.fct.di.novasys.babel.protocols.storage.operations.common.CommonOperation
operationType -
Constructor Summary
ConstructorsConstructorDescriptionPayloadOperation(CommonOperationType type, byte[] payload) Creates a payload operation with a given operation type, and a payload containing the data. -
Method Summary
Modifier and TypeMethodDescriptionbyte[]Gets the payload associated with the operation.Methods inherited from class pt.unl.fct.di.novasys.babel.protocols.storage.operations.common.CommonOperation
getOperationType
-
Constructor Details
-
PayloadOperation
Creates a payload operation with a given operation type, and a payload containing the data.- Parameters:
type- the type of operationpayload- the payload of the operation.
-
-
Method Details
-
getPayload
public byte[] getPayload()Gets the payload associated with the operation.- Returns:
- the payload of the operation.
-