Interface Operation
- All Known Subinterfaces:
JmxOperation
,WebOperation
- All Known Implementing Classes:
AbstractDiscoveredOperation
public interface Operation
An operation on an
endpoint
.- Since:
- 2.0.0
- Author:
- Andy Wilkinson, Phillip Webb
-
Method Summary
Modifier and TypeMethodDescriptiongetType()
Returns thetype
of the operation.invoke
(InvocationContext context) Invoke the underlying operation using the givencontext
.
-
Method Details
-
getType
OperationType getType()Returns thetype
of the operation.- Returns:
- the type
-
invoke
Invoke the underlying operation using the givencontext
. Results intended to be returned in the body of the response should additionally implementOperationResponseBody
.- Parameters:
context
- the context in to use when invoking the operation- Returns:
- the result of the operation, may be
null
-