Package zmq.socket.pubsub
Class XPub
- java.lang.Object
-
- zmq.ZObject
-
- zmq.Own
-
- zmq.SocketBase
-
- zmq.socket.pubsub.XPub
-
- All Implemented Interfaces:
Pipe.IPipeEvents,IPollEvents
- Direct Known Subclasses:
Pub
public class XPub extends SocketBase
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static classXPub.MarkAsMatchingprivate static classXPub.SendUnsubscription
-
Field Summary
Fields Modifier and Type Field Description private Distdistprivate PipelastPipeprivate booleanlossyprivate booleanmanualprivate MtriemanualSubscriptionsprivate static Mtrie.IMtrieHandlermarkAsMatchingprivate booleanmoreprivate java.util.Deque<Blob>pendingDataprivate java.util.Deque<java.lang.Integer>pendingFlagsprivate java.util.Deque<Pipe>pendingPipesprivate static Mtrie.IMtrieHandlersendUnsubscriptionprivate Mtriesubscriptionsprivate booleanverboseSubsprivate booleanverboseUnsubs-
Fields inherited from class zmq.SocketBase
connectRid
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private voidmarkAsMatching(Pipe pipe)private voidsendUnsubscription(byte[] data, int size)protected voidxattachPipe(Pipe pipe, boolean subscribeToAll, boolean isLocallyInitiated)protected booleanxhasIn()protected booleanxhasOut()protected voidxpipeTerminated(Pipe pipe)protected voidxreadActivated(Pipe pipe)protected Msgxrecv()protected booleanxsend(Msg msg)booleanxsetsockopt(int option, java.lang.Object optval)protected voidxwriteActivated(Pipe pipe)-
Methods inherited from class zmq.SocketBase
bind, cancel, close, connect, connectPeer, destroy, disconnectPeer, errno, eventAccepted, eventAcceptFailed, eventBindFailed, eventClosed, eventCloseFailed, eventConnectDelayed, eventConnected, eventConnectRetried, eventDisconnected, eventHandshakeFailedAuth, eventHandshakeFailedNoDetail, eventHandshakeFailedProtocol, eventHandshaken, eventHandshakeSucceeded, eventListening, getCredential, getFD, getSocketOpt, getSocketOptx, hiccuped, inEvent, join, leave, monitor, monitorEvent, pipeTerminated, poll, processBind, processDestroy, processStop, processTerm, readActivated, recv, recv, send, send, setSocketOpt, termEndpoint, toString, typeString, writeActivated, xdisconnectPeer, xhiccuped, xjoin, xleave
-
Methods inherited from class zmq.Own
incSeqnum, isTerminating, launchChild, processOwn, processSeqnum, processTermAck, processTermReq, termChild, terminate
-
Methods inherited from class zmq.ZObject
chooseIoThread, connectPending, destroySocket, findEndpoint, getCtx, getTid, pendConnection, processActivateRead, processActivateWrite, processAttach, processCancel, processHiccup, processPipeTerm, processPipeTermAck, processPlug, processReap, processReapAck, processReaped, registerEndpoint, sendActivateRead, sendActivateWrite, sendAttach, sendAttach, sendBind, sendBind, sendCancel, sendDone, sendHiccup, sendInprocConnected, sendOwn, sendPipeTerm, sendPipeTermAck, sendPlug, sendPlug, sendReap, sendReapAck, sendReaped, sendStop, sendTerm, sendTermAck, sendTermReq, setTid, unregisterEndpoint, unregisterEndpoints
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface zmq.poll.IPollEvents
acceptEvent, connectEvent, outEvent, timerEvent
-
-
-
-
Field Detail
-
subscriptions
private final Mtrie subscriptions
-
manualSubscriptions
private final Mtrie manualSubscriptions
-
dist
private final Dist dist
-
verboseSubs
private boolean verboseSubs
-
verboseUnsubs
private boolean verboseUnsubs
-
more
private boolean more
-
lossy
private boolean lossy
-
manual
private boolean manual
-
lastPipe
private Pipe lastPipe
-
pendingPipes
private final java.util.Deque<Pipe> pendingPipes
-
pendingData
private final java.util.Deque<Blob> pendingData
-
pendingFlags
private final java.util.Deque<java.lang.Integer> pendingFlags
-
markAsMatching
private static final Mtrie.IMtrieHandler markAsMatching
-
sendUnsubscription
private static final Mtrie.IMtrieHandler sendUnsubscription
-
-
Constructor Detail
-
XPub
public XPub(Ctx parent, int tid, int sid)
-
-
Method Detail
-
xattachPipe
protected void xattachPipe(Pipe pipe, boolean subscribeToAll, boolean isLocallyInitiated)
- Specified by:
xattachPipein classSocketBase
-
xreadActivated
protected void xreadActivated(Pipe pipe)
- Overrides:
xreadActivatedin classSocketBase
-
xwriteActivated
protected void xwriteActivated(Pipe pipe)
- Overrides:
xwriteActivatedin classSocketBase
-
xsetsockopt
public boolean xsetsockopt(int option, java.lang.Object optval)- Overrides:
xsetsockoptin classSocketBase
-
xpipeTerminated
protected void xpipeTerminated(Pipe pipe)
- Specified by:
xpipeTerminatedin classSocketBase
-
markAsMatching
private void markAsMatching(Pipe pipe)
-
xsend
protected boolean xsend(Msg msg)
- Overrides:
xsendin classSocketBase
-
xhasOut
protected boolean xhasOut()
- Overrides:
xhasOutin classSocketBase
-
xrecv
protected Msg xrecv()
- Overrides:
xrecvin classSocketBase
-
xhasIn
protected boolean xhasIn()
- Overrides:
xhasInin classSocketBase
-
sendUnsubscription
private void sendUnsubscription(byte[] data, int size)
-
-