public abstract class ActionBase extends java.lang.Object implements Action
Modifier | Constructor and Description |
---|---|
protected |
ActionBase()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
close()
Cancels the action if not already initialized or waits till completion.
|
abstract boolean |
execute()
Perform action.
|
boolean |
isComplete()
Tests if the action is complete.
|
protected void |
reportException(java.lang.Exception ex)
Capture exception.
|
void |
run() |
public abstract boolean execute() throws java.io.IOException
public void run()
run
in interface java.lang.Runnable
public void close()
public boolean isComplete()
isComplete
in interface Action
protected void reportException(java.lang.Exception ex)
ex
- exception.Copyright © 2006-2019 OPS4J - Open Participation Software for Java. All Rights Reserved.