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 class
USed to build an instance ofUnixFSTransactionCommand
. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
Gets aUnixFSTransactionCommand.Builder
used to construct an instance ofUnixFSTransactionCommand
command.static UnixFSTransactionCommand
from
(ByteBuffer byteBuffer) Reads a newUnixFSTransactionCommand
from 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 ofUnixFSProgramCorruptionException
if there is a problem extracting the parameter from the command.- Parameters:
index
-- Returns:
- an instance of
UnixFSTransactionParameter
-
builder
Gets aUnixFSTransactionCommand.Builder
used to construct an instance ofUnixFSTransactionCommand
command.- Returns:
- a new
UnixFSTransactionCommand.Builder
instance
-
from
Reads a newUnixFSTransactionCommand
from the suppliedByteBuffer
. This will read until the end of theByteBuffer
- Parameters:
byteBuffer
- theByteBuffer
to read from.
-
toString
-