class ManagedContext
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
private static class |
ManagedContext.ContextHolder |
Modifier and Type | Field and Description |
---|---|
private Ctx |
ctx |
private java.util.concurrent.locks.Lock |
lock |
private java.util.Set<SocketBase> |
sockets |
Modifier | Constructor and Description |
---|---|
private |
ManagedContext() |
Modifier and Type | Method and Description |
---|---|
private void |
close() |
(package private) SocketBase |
createSocket(int type) |
(package private) void |
destroy(SocketBase socketBase) |
(package private) static ManagedContext |
getInstance() |
private final java.util.concurrent.locks.Lock lock
private final Ctx ctx
private final java.util.Set<SocketBase> sockets
static ManagedContext getInstance()
SocketBase createSocket(int type)
void destroy(SocketBase socketBase)
private void close()