public class ReadyState extends Object
check
or shutdown
,
and initialization should call ready
when the service is ready
to use.Constructor and Description |
---|
ReadyState() |
Modifier and Type | Method and Description |
---|---|
void |
check()
Checks if the service is ready to use, waiting if it is
initializing, and throwing
NoSuchObjectException if it is
shutting down. |
boolean |
isReady() |
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. |
public boolean isReady()
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
.Copyright © GigaSpaces.