Package zmq
Class Ctx.ChannelForwardHolder
java.lang.Object
zmq.Ctx.ChannelForwardHolder
- Enclosing class:
Ctx
A class that holds the informations needed to forward channel in monitor sockets.
Of course, it only works with inproc sockets.
It uses WeakReference to avoid holding references to channel if the monitor event is lost.
A class is used as a lock in lazy allocation of the needed objects.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final AtomicInteger
private final Map
<Integer, WeakReference<SelectableChannel>> private final ReferenceQueue
<SelectableChannel> private final Map
<WeakReference<SelectableChannel>, Integer> -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
handleSource
-
map
-
reversemap
-
queue
-
-
Constructor Details
-
ChannelForwardHolder
private ChannelForwardHolder()
-