public abstract class TerminationCommand extends Object implements ITerminationCommand
Constructor and Description |
---|
TerminationCommand() |
Modifier and Type | Method and Description |
---|---|
boolean |
checkTermination(Exception reason)
Check if termination is allowed.
|
void |
terminated(Exception reason)
Called after termination was performed.
|
public boolean checkTermination(Exception reason)
checkTermination
in interface ITerminationCommand
reason
- The reason supplied for termination.public void terminated(Exception reason)
terminated
in interface ITerminationCommand
reason
- The reason supplied for termination.Copyright © 2013. All Rights Reserved.