|
Qwylt | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.module.spi.ConnectionCoordinator
public abstract class ConnectionCoordinator
This class coordinates import resolution for
and across ModuleArchive instances, ensuring that cyclic
imports do not result in deadlock. A singleton is required to ensure that
all threads requiring resolution share a common mechanism.
| Nested Class Summary | |
|---|---|
static class |
ConnectionCoordinator.Default
A ConnectionCoordinator that initializes connections on a single private
thread to prevent deadlocks due to import cycles. |
| Constructor Summary | |
|---|---|
ConnectionCoordinator()
|
|
| Method Summary | |
|---|---|
protected abstract void |
start()
Start this coordinator. |
protected abstract void |
stop()
Stop this coordinator. |
protected abstract void |
submit(ModuleState moduleState)
Submit the specified state to be driven to
either the CONNECTED or FAILED status. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ConnectionCoordinator()
| Method Detail |
|---|
protected abstract void start()
protected abstract void stop()
protected abstract void submit(ModuleState moduleState)
throws java.lang.InterruptedException
state to be driven to
either the CONNECTED or FAILED status.
moduleState - The module state.
java.lang.InterruptedException - if interrupted.
|
Qwylt | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||