接口 Operation

所有已知子接口:
JmxOperation, WebOperation
所有已知实现类:
AbstractDiscoveredOperation

public interface Operation
An operation on an endpoint.
从以下版本开始:
2.0.0
作者:
Andy Wilkinson, Phillip Webb
  • 方法详细资料

    • getType

      OperationType getType()
      Returns the type of the operation.
      返回:
      the type
    • invoke

      Object invoke(InvocationContext context)
      Invoke the underlying operation using the given context. Results intended to be returned in the body of the response should additionally implement OperationResponseBody.
      参数:
      context - the context in to use when invoking the operation
      返回:
      the result of the operation, may be null