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 Details

    • getType

      OperationType getType()
      Returns the type of the operation.
      Returns:
      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.
      Parameters:
      context - the context in to use when invoking the operation
      Returns:
      the result of the operation, may be null