com.twitter.common.base
Interface ExceptionalCommand<E extends Exception>

Type Parameters:
E - The type of exception that the command throws.
All Known Subinterfaces:
Command
All Known Implementing Classes:
ExecutorServiceShutdown, LogModule.ExportLogDir, ShutdownRegistry.ShutdownRegistryImpl, StartupRegistry, StatsExportModule.StartCuckooExporter, StatsModule.StartStatPoller

public interface ExceptionalCommand<E extends Exception>

An interface that captures a unit of work.


Method Summary
 void execute()
          Performs a unit of work, possibly throwing E in the process.
 

Method Detail

execute

void execute()
             throws E extends Exception
Performs a unit of work, possibly throwing E in the process.

Throws:
E - if there was a problem performing the work
E extends Exception