O1 - The type of objects for which runnables are registered.O2 - The type of objects with which runnables are managed and executed within an
object-specific executor service.public interface ObjectRunnable<O1,O2>
extends java.lang.Runnable
| Modifier and Type | Method and Description |
|---|---|
void |
awaitTermination()
Awaits the termination of this runnable.
|
O2 |
getIndexObject()
Gets the object with which this runnable is managed and executed within an object-specific
executor service.
|
O1 |
getRegisteredObject()
Gets the object with which this runnable has been registered at an object-specific executor
service.
|
O1 getRegisteredObject()
O2 getIndexObject()
void awaitTermination()
throws java.lang.InterruptedException
java.lang.InterruptedException - If the waiting thread is interrupted while waiting for this
runnable to terminate, an InterruptedException will be thrown.