public class Operation extends Object
Constructor and Description |
---|
Operation(OperationType operationType,
OperationInvoker invoker,
boolean blocking)
Creates a new
EndpointOperation for an operation of the given type . |
Modifier and Type | Method and Description |
---|---|
OperationInvoker |
getInvoker()
Returns the
OperationInvoker that can be used to invoke this endpoint
operation. |
OperationType |
getType()
Returns the
type of the operation. |
boolean |
isBlocking()
Whether or not this is a blocking operation.
|
public Operation(OperationType operationType, OperationInvoker invoker, boolean blocking)
EndpointOperation
for an operation of the given type
.
The operation can be performed using the given operationInvoker
.operationType
- the type of the operationinvoker
- used to perform the operationblocking
- whether or not this is a blocking operationpublic OperationType getType()
type
of the operation.public OperationInvoker getInvoker()
OperationInvoker
that can be used to invoke this endpoint
operation.public boolean isBlocking()
true
if it is a blocking operation, otherwise false
.Copyright © 2017 Pivotal Software, Inc.. All rights reserved.