Class UnixFSTransactionCommand
java.lang.Object
dev.getelements.elements.rt.transact.unix.UnixFSTransactionCommand
Enumerates all commands that can take place during the scope of a transaction.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classUSed to build an instance ofUnixFSTransactionCommand. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Gets aUnixFSTransactionCommand.Builderused to construct an instance ofUnixFSTransactionCommandcommand.static UnixFSTransactionCommandfrom(ByteBuffer byteBuffer) Reads a newUnixFSTransactionCommandfrom the suppliedByteBuffer.Gets the instruction.getParameterAt(int index) Gets the parameter at the supplied position.getPhase()Gets the phase.toString()
-
Method Details
-
getPhase
Gets the phase.- Returns:
- the
UnixFSTransactionProgramExecutionPhase
-
getInstruction
Gets the instruction.- Returns:
- the
UnixFSTransactionCommandInstruction
-
getParameterAt
Gets the parameter at the supplied position. Throwing an instance ofUnixFSProgramCorruptionExceptionif there is a problem extracting the parameter from the command.- Parameters:
index-- Returns:
- an instance of
UnixFSTransactionParameter
-
builder
Gets aUnixFSTransactionCommand.Builderused to construct an instance ofUnixFSTransactionCommandcommand.- Returns:
- a new
UnixFSTransactionCommand.Builderinstance
-
from
Reads a newUnixFSTransactionCommandfrom the suppliedByteBuffer. This will read until the end of theByteBuffer- Parameters:
byteBuffer- theByteBufferto read from.
-
toString
-