Class Operation

    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected Config config  
    • Constructor Summary

      Constructors 
      Constructor Description
      Operation​(Config config)  
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      abstract OperationResult execute()
      Executes the operation synchronously and returns a result when the operation exits.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • execute

        public abstract OperationResult execute()
                                         throws java.lang.Exception
        Executes the operation synchronously and returns a result when the operation exits. Using covariance is recommend, that is OperationFoo should override execute so as to return a OperationFooResult rather than OperationResult.
        Returns:
        Returns an operation-specific operation result
        Throws:
        java.lang.Exception - If the operation fails