Uses of Class
org.zeromq.ZMQ.Socket
Packages that use ZMQ.Socket
Package
Description
Provides high-level bindings for ØMQ.
Provides utility classes for ØMQ zproto.
-
Uses of ZMQ.Socket in org.zeromq
Fields in org.zeromq declared as ZMQ.SocketModifier and TypeFieldDescriptionprivate ZMQ.SocketZProxy.ProxyActor.backendprivate ZMQ.SocketZProxy.ProxyActor.captureprivate ZMQ.SocketZProxy.ProxyActor.frontendprivate final ZMQ.SocketZAuth.ZapRequest.handlerprivate final ZMQ.SocketZMQQueue.inSocketprivate ZMQ.SocketZMonitor.MonitorActor.monitorprivate final ZMQ.SocketZMonitor.MonitorActor.monitoredprivate final ZMQ.SocketZMQQueue.outSocketprivate final ZMQ.SocketZActor.Double.pipeprivate final ZMQ.SocketZAgent.SimpleAgent.pipeprivate ZMQ.SocketZThread.ShimThread.pipeprivate ZMQ.SocketZAuth.AuthActor.repliesprivate final ZMQ.SocketZMQ.PollItem.socketprivate final ZMQ.SocketZPoller.CompositePollItem.socketFields in org.zeromq with type parameters of type ZMQ.SocketModifier and TypeFieldDescriptionprivate final List<ZMQ.Socket> ZActor.Double.socketsprivate final Set<ZMQ.Socket> ZContext.socketsList of sockets managed by this ZContextprivate final BiFunction<ZMQ.Socket, Integer, Boolean> ZPoller.ComposeEventsHandler.socketsMethods in org.zeromq that return ZMQ.SocketModifier and TypeMethodDescriptionZProxy.Proxy.create(ZContext ctx, ZProxy.Plug place, Object... args) Creates and initializes (bind, options ...) the socket for the given plug in the proxy.ZContext.createSocket(int type) Deprecated.ZContext.createSocket(SocketType type) Creates a new managed socket within this ZContext instance.ZContext.fork(ZThread.IAttachedRunnable runnable, Object... args) Create an attached thread, An attached thread gets a ctx and a PAIR pipe back to its parent.static ZMQ.SocketZThread.fork(ZContext ctx, ZThread.IAttachedRunnable runnable, Object... args) ZMQ.Poller.getSocket(int index) Get the socket associated with an index.final ZMQ.SocketZMQ.PollItem.getSocket()ZAgent.pipe()Returns the socket used for communication.ZAgent.SimpleAgent.pipe()ZStar.pipe()ZMQ.Context.socket(int type) Deprecated.ZMQ.Context.socket(SocketType type) Creates a ØMQ socket within the specified context and return an opaque handle to the newly created socket.ZPoller.CompositePollItem.socket()ZPoller.ItemHolder.socket()ZPoller.ZPollItem.socket()Methods in org.zeromq that return types with arguments of type ZMQ.SocketModifier and TypeMethodDescriptionZActor.Actor.createSockets(ZContext ctx, Object... args) Creates and initializes sockets for the double.ZActor.Duo.createSockets(ZContext ctx, Object... args) ZActor.SimpleActor.createSockets(ZContext ctx, Object... args) ZAuth.AuthActor.createSockets(ZContext ctx, Object... args) ZMonitor.MonitorActor.createSockets(ZContext ctx, Object... args) ZProxy.ProxyActor.createSockets(ZContext ctx, Object... args) ZContext.getSockets()Return a copy of the list of currently open sockets.Methods in org.zeromq with parameters of type ZMQ.SocketModifier and TypeMethodDescriptionprivate booleanZMonitor.MonitorActor.addEvents(ZMQ.Socket pipe) protected ZAgentZStar.agent(ZMQ.Socket phone, String secret) Deprecated.voidZCert.apply(ZMQ.Socket socket) booleanZActor.Actor.backstage(ZMQ.Socket pipe, ZPoller poller, int events) Called when the actor received a control message from its pipe during a loop.booleanZActor.Duo.backstage(ZMQ.Socket pipe, ZPoller poller, int events) booleanZActor.SimpleActor.backstage(ZMQ.Socket pipe, ZPoller poller, int events) booleanZAuth.AuthActor.backstage(ZMQ.Socket pipe, ZPoller poller, int events) booleanZMonitor.MonitorActor.backstage(ZMQ.Socket pipe, ZPoller poller, int evts) booleanZProxy.ProxyActor.backstage(ZMQ.Socket pipe, ZPoller poller, int events) voidZStar.Entourage.breakaleg(ZContext ctx, ZStar.Fortune fortune, ZMQ.Socket phone, Object... bags) Called when the show is about to start.private booleanZMonitor.MonitorActor.close(ZPoller poller, ZMQ.Socket pipe) voidZActor.Actor.closed(ZMQ.Socket socket) Called when a created socket has been closed.voidZActor.Duo.closed(ZMQ.Socket socket) voidZActor.SimpleActor.closed(ZMQ.Socket socket) (package private) voidZContext.closeSocket(ZMQ.Socket s) Close managed socket within this context and remove from sockets list.booleanZProxy.Proxy.configure(ZMQ.Socket pipe, ZMsg cfg, ZMQ.Socket frontend, ZMQ.Socket backend, ZMQ.Socket capture, Object... args) Configures the proxy with a custom message.booleanZProxy.Proxy.configure(ZMQ.Socket socket, ZProxy.Plug place, Object... args) Configures the given socket.booleanZProxy.Proxy.SimpleProxy.configure(ZMQ.Socket pipe, ZMsg cfg, ZMQ.Socket frontend, ZMQ.Socket backend, ZMQ.Socket capture, Object... args) ZActor.ActorFortune.create(ZContext ctx, ZMQ.Socket pipe, int count, ZStar.Star previous, Object... args) static ZAgentZAgent.Creator.create(ZMQ.Socket pipe, String lock) protected ZPoller.ItemHolderZPoller.create(ZMQ.Socket socket, ZPoller.EventsHandler handler, int events) ZPoller.ItemCreator.create(ZMQ.Socket socket, ZPoller.EventsHandler handler, int events) Creates a new holder for a poll item.ZPoller.SimpleCreator.create(ZMQ.Socket socket, ZPoller.EventsHandler handler, int events) ZStar.Fortune.create(ZContext ctx, ZMQ.Socket mic, int count, ZStar.Star previous, Object... args) Creates a star.default ZStar.StarZStar.Fortune.create(ZContext ctx, ZMQ.Socket mic, Selector sel, int count, ZStar.Star previous, Object... args) Deprecated.booleanZProxy.Proxy.custom(ZMQ.Socket pipe, String cmd, ZMQ.Socket frontend, ZMQ.Socket backend, ZMQ.Socket capture, Object... args) Handles a custom command not recognized by the proxy.booleanZProxy.Proxy.SimpleProxy.custom(ZMQ.Socket pipe, String cmd, ZMQ.Socket frontend, ZMQ.Socket backend, ZMQ.Socket capture, Object... args) booleanZActor.Actor.destroyed(ZContext ctx, ZMQ.Socket pipe, ZPoller poller) Called when the current double has been destroyed.booleanZActor.Duo.destroyed(ZContext ctx, ZMQ.Socket pipe, ZPoller poller) booleanZActor.SimpleActor.destroyed(ZContext ctx, ZMQ.Socket pipe, ZPoller poller) booleanZProxy.ProxyActor.destroyed(ZContext ctx, ZMQ.Socket pipe, ZPoller poller) voidZContext.destroySocket(ZMQ.Socket s) Deprecated.Not to be used any more.static booleanZMQ.device(int type, ZMQ.Socket frontend, ZMQ.Socket backend) Deprecated.booleanZPoller.error(ZMQ.Socket socket) booleanZActor.Double.events(ZMQ.Socket socket, int events) booleanZPoller.ComposeEventsHandler.events(ZMQ.Socket socket, int events) booleanZPoller.CompositePollItem.events(ZMQ.Socket socket, int events) booleanZPoller.EventsHandler.events(ZMQ.Socket socket, int events) Called when the poller intercepts events.booleanZActor.Actor.finished(ZMQ.Socket pipe) Called when the stage is finished.booleanZActor.Duo.finished(ZMQ.Socket pipe) booleanZActor.SimpleActor.finished(ZMQ.Socket pipe) booleanZProxy.Pump.flow(ZProxy.Plug src, ZMQ.Socket source, ZMQ.Socket capture, ZProxy.Plug dst, ZMQ.Socket destination) Transfers a message from one source to one destination, with an optional capture.booleanZProxy.ZmqPump.flow(ZProxy.Plug splug, ZMQ.Socket source, ZMQ.Socket capture, ZProxy.Plug dplug, ZMQ.Socket destination) booleanZProxy.ZPump.flow(ZProxy.Plug splug, ZMQ.Socket source, ZMQ.Socket capture, ZProxy.Plug dplug, ZMQ.Socket destination) booleanZActor.ActorFortune.interview(ZMQ.Socket mic) booleanZStar.Fortune.interview(ZMQ.Socket mic) The show is over.booleanZPoller.isError(ZMQ.Socket socket) Tells if a socket is in error from this poller.booleanZPoller.isReadable(ZMQ.Socket socket) Tells if a socket is readable from this poller.booleanZPoller.isWritable(ZMQ.Socket socket) Tells if a socket is writable from this poller.booleanZActor.Actor.looped(ZMQ.Socket pipe, ZPoller poller) Called at the end of each loop.booleanZActor.Duo.looped(ZMQ.Socket pipe, ZPoller poller) booleanZActor.SimpleActor.looped(ZMQ.Socket pipe, ZPoller poller) booleanZProxy.ProxyActor.looped(ZMQ.Socket pipe, ZPoller poller) longZActor.Actor.looping(ZMQ.Socket pipe, ZPoller poller) Called every time just before a loop starts.longZActor.Duo.looping(ZMQ.Socket pipe, ZPoller poller) longZActor.SimpleActor.looping(ZMQ.Socket pipe, ZPoller poller) longZProxy.ProxyActor.looping(ZMQ.Socket pipe, ZPoller poller) booleanZPoller.pollerr(ZMQ.Socket socket) booleanZPoller.pollin(ZMQ.Socket socket) booleanZPoller.pollout(ZMQ.Socket socket) ZActor.Actor.premiere(ZMQ.Socket pipe) This is the grand premiere! Called before the creation of the first double and the sockets 2nd in the order call of the global acting.ZActor.ActorFortune.premiere(ZMQ.Socket mic, Object... args) ZActor.Duo.premiere(ZMQ.Socket pipe) ZActor.SimpleActor.premiere(ZMQ.Socket pipe) ZAuth.AuthActor.premiere(ZMQ.Socket pipe) ZMonitor.MonitorActor.premiere(ZMQ.Socket pipe) ZProxy.ProxyActor.premiere(ZMQ.Socket pipe) ZStar.Fortune.premiere(ZMQ.Socket mic, Object... args) This is the grand premiere! Called when the star enters the plateau.static booleanZMQ.proxy(ZMQ.Socket frontend, ZMQ.Socket backend, ZMQ.Socket capture) Starts the built-in 0MQ proxy in the current application thread.static booleanZMQ.proxy(ZMQ.Socket frontend, ZMQ.Socket backend, ZMQ.Socket capture, ZMQ.Socket control) booleanZPoller.readable(ZMQ.Socket socket) static ZMQ.EventZMQ.Event.recv(ZMQ.Socket socket) Receive an event from a monitor socket.static ZMQ.EventZMQ.Event.recv(ZMQ.Socket socket, int flags) Receive an event from a monitor socket.static ZFrameZFrame.recvFrame(ZMQ.Socket socket) Receives single frame from socket, returns the received frame object, or null if the recv was interrupted.static ZFrameZFrame.recvFrame(ZMQ.Socket socket, int flags) Receive a new frame off the socket, Returns newly-allocated frame, or null if there was no input waiting, or if the read was interrupted.static ZMsgZMsg.recvMsg(ZMQ.Socket socket) Receives message from socket, returns ZMsg object or null if the recv was interrupted.static ZMsgZMsg.recvMsg(ZMQ.Socket socket, boolean wait) Receives message from socket, returns ZMsg object or null if the recv was interrupted.static ZMsgZMsg.recvMsg(ZMQ.Socket socket, int flag) Receives message from socket, returns ZMsg object or null if the recv was interrupted.static voidZMsg.recvMsg(ZMQ.Socket socket, int flags, Consumer<ZMsg> handler) This API is in DRAFT state and is subject to change at ANY time until declared stable handle incoming message with a handlerstatic voidZMsg.recvMsg(ZMQ.Socket socket, int flags, Consumer<ZMsg> handler, Consumer<ZMQException> exceptionHandler) This API is in DRAFT state and is subject to change at ANY time until declared stable handle incoming message with a handlerprivate static ZAuth.ZapRequestZAuth.ZapRequest.recvRequest(ZMQ.Socket handler, boolean wait) intZMQ.Poller.register(ZMQ.Socket socket) Register a Socket for polling on all events.intZMQ.Poller.register(ZMQ.Socket socket, int events) Register a Socket for polling on the specified events.final booleanZPoller.register(ZMQ.Socket socket, int events) final booleanZPoller.register(ZMQ.Socket socket, ZPoller.EventsHandler handler) final booleanZPoller.register(ZMQ.Socket socket, ZPoller.EventsHandler handler, int events) Register a Socket for polling on specified events.final booleanZPoller.register(ZMQ.Socket socket, BiFunction<ZMQ.Socket, Integer, Boolean> handler, int events) Register a Socket for polling on specified events.private booleanZMonitor.MonitorActor.removeEvents(ZMQ.Socket pipe) private voidZAuth.ZapRequest.reply(int statusCode, String statusText, ZMQ.Socket replies) Send a zap reply to the handler socketbooleanZProxy.Proxy.restart(ZMsg cfg, ZMQ.Socket socket, ZProxy.Plug place, Object... args) Performs a hot restart of the given socket.booleanZProxy.Proxy.SimpleProxy.restart(ZMsg cfg, ZMQ.Socket socket, ZProxy.Plug place, Object... args) private booleanZProxy.ProxyActor.restart(ZMQ.Socket pipe, boolean hot) voidZStar.Plateau.run(Object[] train, ZContext chef, ZMQ.Socket mic) voidZThread.IAttachedRunnable.run(Object[] args, ZContext ctx, ZMQ.Socket pipe) booleanZFrame.send(ZMQ.Socket socket, int flags) Internal method to call org.zeromq.Socket send() method.booleanZMsg.send(ZMQ.Socket socket) Send message to 0MQ socket.booleanZMsg.send(ZMQ.Socket socket, boolean destroy) Send message to 0MQ socket, destroys contents after sending if destroy param is set to true.booleanZFrame.sendAndDestroy(ZMQ.Socket socket) Sends frame to socket if it contains data.booleanZFrame.sendAndDestroy(ZMQ.Socket socket, int flags) Sends frame to socket if it contains data.booleanZFrame.sendAndKeep(ZMQ.Socket socket) Sends frame to socket if it contains any data.booleanZFrame.sendAndKeep(ZMQ.Socket socket, int flags) Sends frame to socket if it contains any data.private voidZStar.Plateau.showMustGoOn(ZContext chef, ZStar.Set set, ZMQ.Socket phone, ZStar.Fortune fortune, Object... bags) booleanZActor.Actor.stage(ZMQ.Socket socket, ZMQ.Socket pipe, ZPoller poller, int events) The actor received a message from the created sockets during a loop.booleanZActor.Duo.stage(ZMQ.Socket socket, ZMQ.Socket pipe, ZPoller poller, int events) booleanZActor.SimpleActor.stage(ZMQ.Socket socket, ZMQ.Socket pipe, ZPoller poller, int events) booleanZAuth.AuthActor.stage(ZMQ.Socket socket, ZMQ.Socket pipe, ZPoller poller, int events) booleanZMonitor.MonitorActor.stage(ZMQ.Socket socket, ZMQ.Socket pipe, ZPoller poller, int evts) booleanZProxy.ProxyActor.stage(ZMQ.Socket socket, ZMQ.Socket pipe, ZPoller poller, int events) voidZActor.Actor.start(ZMQ.Socket pipe, List<ZMQ.Socket> sockets, ZPoller poller) Called when the double is started, before the first loop.voidZActor.Duo.start(ZMQ.Socket pipe, List<ZMQ.Socket> sockets, ZPoller poller) voidZActor.SimpleActor.start(ZMQ.Socket pipe, List<ZMQ.Socket> sockets, ZPoller poller) voidZAuth.AuthActor.start(ZMQ.Socket pipe, List<ZMQ.Socket> sockets, ZPoller poller) voidZMonitor.MonitorActor.start(ZMQ.Socket pipe, List<ZMQ.Socket> sockets, ZPoller poller) private booleanZMonitor.MonitorActor.start(ZPoller poller, ZMQ.Socket pipe) voidZProxy.ProxyActor.start(ZMQ.Socket pipe, List<ZMQ.Socket> sockets, ZPoller poller) voidZMQ.Poller.unregister(ZMQ.Socket socket) Unregister a Socket for polling on the specified events.booleanZPoller.writable(ZMQ.Socket socket) Method parameters in org.zeromq with type arguments of type ZMQ.SocketModifier and TypeMethodDescriptionfinal booleanZPoller.register(ZMQ.Socket socket, BiFunction<ZMQ.Socket, Integer, Boolean> handler, int events) Register a Socket for polling on specified events.voidZActor.Actor.start(ZMQ.Socket pipe, List<ZMQ.Socket> sockets, ZPoller poller) Called when the double is started, before the first loop.voidZActor.Duo.start(ZMQ.Socket pipe, List<ZMQ.Socket> sockets, ZPoller poller) voidZActor.SimpleActor.start(ZMQ.Socket pipe, List<ZMQ.Socket> sockets, ZPoller poller) voidZAuth.AuthActor.start(ZMQ.Socket pipe, List<ZMQ.Socket> sockets, ZPoller poller) voidZMonitor.MonitorActor.start(ZMQ.Socket pipe, List<ZMQ.Socket> sockets, ZPoller poller) voidZProxy.ProxyActor.start(ZMQ.Socket pipe, List<ZMQ.Socket> sockets, ZPoller poller) Constructors in org.zeromq with parameters of type ZMQ.SocketModifierConstructorDescriptionDouble(ZContext ctx, ZMQ.Socket pipe, ZActor.Actor actor, Object... args) MonitorActor(ZMQ.Socket socket) PollItem(ZMQ.Socket socket, int ops) protectedShimThread(ZContext ctx, ZThread.IAttachedRunnable runnable, Object[] args, ZMQ.Socket pipe) SimpleAgent(ZMQ.Socket pipe, String lock) Creates a new simple agent.privateZapRequest(ZMQ.Socket handler, ZMsg request) ZMonitor(ZContext ctx, ZMQ.Socket socket) Creates a monitoring actor for the given socket.ZMQQueue(ZMQ.Context context, ZMQ.Socket inSocket, ZMQ.Socket outSocket) Class constructor.ZPollItem(ZMQ.Socket socket, ZPoller.EventsHandler handler, int ops) Constructor parameters in org.zeromq with type arguments of type ZMQ.SocketModifierConstructorDescriptionComposeEventsHandler(BiFunction<ZMQ.Socket, Integer, Boolean> sockets, BiFunction<SelectableChannel, Integer, Boolean> channels) ZStar(ZContext context, ZAgent.SelectorCreator selector, ZStar.Fortune fortune, BiFunction<ZMQ.Socket, String, ZAgent> agent, String motdelafin, Object... bags) Deprecated.ZStar(ZContext context, ZStar.Fortune fortune, BiFunction<ZMQ.Socket, String, ZAgent> agent, String motdelafin, Object... bags) Creates a new ZStar. -
Uses of ZMQ.Socket in org.zeromq.proto
Methods in org.zeromq.proto with parameters of type ZMQ.SocketModifier and TypeMethodDescriptionObject[]ZPicture.recvBinaryPicture(ZMQ.Socket socket, String picture) Receive a binary encoded 'picture' message from the socket (or actor).Object[]ZPicture.recvPicture(ZMQ.Socket socket, String picture) Receive a 'picture' message to the socket (or actor).booleanZPicture.sendBinaryPicture(ZMQ.Socket socket, String picture, Object... args) booleanZPicture.sendPicture(ZMQ.Socket socket, String picture, Object... args) Queues a 'picture' message to the socket (or actor), so it can be sent.
ZContext.createSocket(SocketType)