Class UnixFSTransactionCommand.Builder
java.lang.Object
dev.getelements.elements.rt.transact.unix.UnixFSTransactionCommand.Builder
- Enclosing class:
UnixFSTransactionCommand
USed to build an instance of
UnixFSTransactionCommand
. This configures the command header as well as each
additional parameter associated with the command.-
Method Summary
Modifier and TypeMethodDescriptionaddFSPathParameter
(Path path) Appends aPath
parameter.addResourceIdParameter
(ResourceId resourceId) Appends aResourceId
parameter.addRTPathParameter
(Path path) Appends aPath
parameter.addStringParameter
(String value) Adds a string parameter to the transaction command.build
(ByteBuffer byteBuffer) Builds theUnixFSTransactionCommand
by appending it and its commands to the suppliedByteBuffer
.withInstruction
(UnixFSTransactionCommandInstruction instruction) Specifies theUnixFSTransactionCommandInstruction
to execute.withPhase
(UnixFSTransactionProgramExecutionPhase executionPhase) Specifies theUnixFSTransactionProgramExecutionPhase
of the command.
-
Method Details
-
withPhase
public UnixFSTransactionCommand.Builder withPhase(UnixFSTransactionProgramExecutionPhase executionPhase) Specifies theUnixFSTransactionProgramExecutionPhase
of the command.- Parameters:
executionPhase
- theUnixFSTransactionProgramExecutionPhase
- Returns:
- this instance
-
withInstruction
public UnixFSTransactionCommand.Builder withInstruction(UnixFSTransactionCommandInstruction instruction) Specifies theUnixFSTransactionCommandInstruction
to execute.- Parameters:
instruction
- theUnixFSTransactionCommandInstruction
- Returns:
-
addStringParameter
Adds a string parameter to the transaction command.- Parameters:
value
- the string value- Returns:
- this instance
-
addFSPathParameter
Appends aPath
parameter.- Parameters:
path
- thePath
parameter- Returns:
- this instance
-
addRTPathParameter
Appends aPath
parameter.- Parameters:
path
- thePath
parameter- Returns:
- this instance
-
addResourceIdParameter
Appends aResourceId
parameter.- Parameters:
resourceId
- theResourceId
parameter- Returns:
- this instance
-
build
Builds theUnixFSTransactionCommand
by appending it and its commands to the suppliedByteBuffer
.- Parameters:
byteBuffer
- theByteBuffer
which will receive theUnixFSTransactionCommand
-