接口 Operation
- 所有已知子接口:
JmxOperation
,WebOperation
- 所有已知实现类:
AbstractDiscoveredOperation
public interface Operation
An operation on an
endpoint
.- 从以下版本开始:
- 2.0.0
- 作者:
- Andy Wilkinson, Phillip Webb
-
方法概要
修饰符和类型方法说明getType()
Returns thetype
of the operation.invoke
(InvocationContext context) Invoke the underlying operation using the givencontext
.
-
方法详细资料
-
getType
OperationType getType()Returns thetype
of the operation.- 返回:
- the type
-
invoke
Invoke the underlying operation using the givencontext
. Results intended to be returned in the body of the response should additionally implementOperationResponseBody
.- 参数:
context
- the context in to use when invoking the operation- 返回:
- the result of the operation, may be
null
-