Interface Command<R, C, E extends Exception>

Type Parameters:
R - the command return type
C - the command context type
E - the command execution exception type
All Known Subinterfaces:
PrimaryOwnerCommand<K,V,R>, RuntimeCommand<R,C>
All Known Implementing Classes:
AbstractPrimaryOwnerCommand, CancelCommand, ContainsCommand, ScheduleCommand, ScheduleExpirationCommand

public interface Command<R, C, E extends Exception>
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 E
      Execute this command with the specified context.
      Parameters:
      context - the execution context
      Returns:
      the result of this command
      Throws:
      E - exception that occurred during execution