Interface Command<R,C>

Type Parameters:
C - the command context type
R - the command return type
All Superinterfaces:
Serializable

public interface Command<R,C> extends Serializable
A command to invoke remotely.
Author:
Paul Ferraro
  • Method Summary

    Modifier and Type
    Method
    Description
    execute(C context)
    Execute this command with the specified context.
  • Method Details

    • execute

      R execute(C context) throws Exception
      Execute this command with the specified context.
      Parameters:
      context - the execution context
      Returns:
      the result of this command
      Throws:
      Exception - exception that occurred during execution