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 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