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

public class PayloadOperation extends CommonOperation
A operation containing a payload (represented as a byte []).
  • Constructor Details

    • PayloadOperation

      public PayloadOperation(CommonOperationType type, byte[] payload)
      Creates a payload operation with a given operation type, and a payload containing the data.
      Parameters:
      type - the type of operation
      payload - the payload of the operation.
  • Method Details

    • getPayload

      public byte[] getPayload()
      Gets the payload associated with the operation.
      Returns:
      the payload of the operation.