private static final class NormServerBaseImpl.ReadyState extends Object
Modifier and Type | Field and Description |
---|---|
private static int |
INITIALIZE |
private static int |
READY |
private static int |
SHUTDOWN |
private int |
state |
Modifier | Constructor and Description |
---|---|
private |
NormServerBaseImpl.ReadyState() |
Modifier and Type | Method and Description |
---|---|
(package private) void |
check()
Checks if the service is ready to use, waiting if it is
initializing, and throwing IllegalStateException if it is shutting
down.
|
(package private) void |
ready()
Marks the service ready for use, throwing IllegalStateException if
it is shutting down.
|
(package private) void |
shutdown()
Marks the service as shutting down, waiting if it is initializing,
and throwing IllegalStateException if it is already shutting down.
|
private static final int INITIALIZE
private static final int READY
private static final int SHUTDOWN
private int state
void check()
void ready()
void shutdown()
Copyright 2007-2013, multiple authors.
Licensed under the Apache License, Version 2.0, see the NOTICE file for attributions.