- Direct Known Subclasses:
public abstract class Operation extends java.lang.ObjectOperations represent and implement Syncany's business logic. They typically correspond to a command or an action initiated by either a user, or by a periodic action.
Each operation might be configured using an operation-specific implementation of the
OperationOptionsinterface and is run using the
execute()method. While the input options are optional, it must return a corresponding
All Methods Instance Methods Abstract Methods Modifier and Type Method Description
execute()Executes the operation synchronously and returns a result when the operation exits.
public abstract OperationResult execute() throws java.lang.ExceptionExecutes 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 an operation-specific operation result
java.lang.Exception- If the operation fails