|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.sun.jini.thread.ReadyState
Utility class used to prevent access to a service before it has completed
its initialization or after it starts to shutdown. Each public entry point
to the service should call check or shutdown,
and initialization should call ready when the service is ready
to use.
| Constructor Summary | |
ReadyState()
|
|
| Method Summary | |
void |
check()
Checks if the service is ready to use, waiting if it is initializing, and throwing NoSuchObjectException if it is
shutting down. |
void |
ready()
Marks the service ready for use. |
void |
shutdown()
Marks the service as shutting down, waiting if it is initializing, and throwing NoSuchObjectException if it is already
shutting down. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ReadyState()
| Method Detail |
public void check()
NoSuchObjectException if it is
shutting down. Note that the NoSuchObjectException will be
wrapped in a RemoteExceptionWrapper.
public void ready()
public void shutdown()
NoSuchObjectException if it is already
shutting down. Note that the NoSuchObjectException will be
wrapped in a RemoteExceptionWrapper.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||