public class ServerContext
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Field and Description |
---|---|
private static java.util.HashMap<java.lang.String,java.lang.Object> |
cvCache
A cache of server context objects.
|
private static long |
serialVersionUID
The class' serialization version id.
|
Constructor and Description |
---|
ServerContext() |
Modifier and Type | Method and Description |
---|---|
static java.lang.Object |
get(java.lang.String key)
Returns a value from the context.
|
static java.util.concurrent.ScheduledExecutorService |
getThreadQueue()
Returns the shared instance of the server's FIFO thread queue.
|
static void |
put(java.lang.String key,
java.lang.Object value)
Sets a value in the context.
|
static void |
remove(java.lang.String key)
Removes a value from the context.
|
private static final long serialVersionUID
private static java.util.HashMap<java.lang.String,java.lang.Object> cvCache
public static java.lang.Object get(java.lang.String key)
key
- (String) The value's key.null
if there is no
value in the context for the key.public static void put(java.lang.String key, java.lang.Object value)
key
- (String) The value's key.value
- (Object) The value to store in the context.public static void remove(java.lang.String key)
key
- (String) The value's key.public static java.util.concurrent.ScheduledExecutorService getThreadQueue()