Package org.zeromq
Class ManagedContext
- java.lang.Object
-
- org.zeromq.ManagedContext
-
class ManagedContext extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static class
ManagedContext.ContextHolder
-
Field Summary
Fields Modifier and Type Field Description private Ctx
ctx
private java.util.concurrent.locks.Lock
lock
private java.util.Set<SocketBase>
sockets
-
Constructor Summary
Constructors Modifier Constructor Description private
ManagedContext()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private void
close()
(package private) SocketBase
createSocket(int type)
(package private) void
destroy(SocketBase socketBase)
(package private) static ManagedContext
getInstance()
-
-
-
Field Detail
-
lock
private final java.util.concurrent.locks.Lock lock
-
ctx
private final Ctx ctx
-
sockets
private final java.util.Set<SocketBase> sockets
-
-
Method Detail
-
getInstance
static ManagedContext getInstance()
-
createSocket
SocketBase createSocket(int type)
-
destroy
void destroy(SocketBase socketBase)
-
close
private void close()
-
-