Interface RedundantTask
-
- All Superinterfaces:
java.io.Serializable
public interface RedundantTask extends java.io.Serializable
A runnable task that will be executed both by the local node and the remote backup cluster node.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.io.Serializable
execute(GatewayContext context)
Execute the task and if appropriate, return the result.
-
-
-
Method Detail
-
execute
java.io.Serializable execute(GatewayContext context) throws java.lang.Exception
Execute the task and if appropriate, return the result. If an exception is thrown, the task will not be replicated to the backup node.- Throws:
java.lang.Exception
-
-