public final class OperationResult extends Operation
Operation.Type
Constructor and Description |
---|
OperationResult(OperationResultEvent replacing,
Object result)
Create a new operation representing an invoke result that replaces an existing invoke
result of the same type.
|
OperationResult(OperationResultEvent replacing,
TcapOperation op,
Object result)
Create a new operation representing an invoke result that replaces an existing invoke
result.
|
OperationResult(OperationResult replacing,
Object result)
Create a new operation representing an invoke result that replaces an existing invoke
result of the same type.
|
OperationResult(OperationResult replacing,
TcapOperation op,
Object result)
Create a new operation representing an invoke result that replaces an existing invoke
result.
|
OperationResult(TcapOperation op,
int invokeID,
Object result,
boolean last)
Create a new operation representing an invoke result.
|
Modifier and Type | Method and Description |
---|---|
String |
getName()
Get a descriptive name for this operation.
|
Object |
getResult()
Get the operation argument.
|
Operation.Type |
getType()
Get the type of operation.
|
boolean |
isLast()
Determine if this is the last result for the operation.
|
String |
toString() |
getInvokeID, getOperation
public OperationResult(TcapOperation op, int invokeID, Object result, boolean last)
op
- operation metadata object that identifies the operation.invokeID
- the invoke ID for the operation.result
- the operation result, or null
if there is no result.last
- boolean flag indicating if this is the last result for the operation.public OperationResult(OperationResultEvent replacing, TcapOperation op, Object result)
replacing
- the operation result event that the new result is to replace.op
- operation metadata object that identifies the result operation.result
- the new result argument, or null
if there is no argument.public OperationResult(OperationResult replacing, Object result)
replacing
- the operation result that the new result is to replace.result
- the new result argument, or null
if there is no argument.public OperationResult(OperationResult replacing, TcapOperation op, Object result)
replacing
- the operation result that the new result is to replace.op
- operation metadata object that identifies the result operation.result
- the new result argument, or null
if there is no argument.public OperationResult(OperationResultEvent replacing, Object result)
replacing
- the operation result event that the new result is to replace.result
- the new result argument, or null
if there is no argument.public Operation.Type getType()
Operation
public Object getResult()
null
if there is no argument.public boolean isLast()
true
if this is the last result for the operation,
false
otherwise.public String getName()
Operation