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. |
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 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 © 2016–2018. All rights reserved.