public interface IndependentProcess
extends java.io.Serializable, java.lang.Runnable, java.util.concurrent.Future<java.lang.Integer>
Modifier and Type | Interface and Description |
---|---|
static class |
IndependentProcess.StateValue |
Modifier and Type | Method and Description |
---|---|
void |
addPropertyChangeListener(java.beans.PropertyChangeListener listener)
This method add a listener to the instance of this class if it is not already included in the listeners list.
|
void |
execute()
This method starts the independent process.
|
java.lang.String |
getName()
This method returns the name of the process.
|
void |
removePropertyChangeListener(java.beans.PropertyChangeListener listener)
This method removes all the instances of the listener among the listeners of this class.
|
void |
sendObjectToProcess(java.io.Serializable obj)
This method makes it possible to send a Serializable object to the independent process, typically a callback process.
|
void |
setName(java.lang.String name)
This method sets the name of this process.
|
void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
listener
- a PropertyChangeListener instancevoid removePropertyChangeListener(java.beans.PropertyChangeListener listener)
listener
- a PropertyChangeListener instancevoid execute()
java.lang.String getName()
void setName(java.lang.String name)
name
- a Stringvoid sendObjectToProcess(java.io.Serializable obj) throws java.io.IOException
obj
- a Serializable objectjava.io.IOException