public static interface ZProxy.Proxy
Modifier and Type | Interface and Description |
---|---|
static class |
ZProxy.Proxy.SimpleProxy |
Modifier and Type | Method and Description |
---|---|
boolean |
configure(ZMQ.Socket pipe,
ZMsg cfg,
ZMQ.Socket frontend,
ZMQ.Socket backend,
ZMQ.Socket capture,
Object[] args)
Configures the proxy with a custom message.
|
void |
configure(ZMQ.Socket socket,
ZProxy.Plug place,
Object[] args)
Configures the given socket.
|
ZMQ.Socket |
create(ZContext ctx,
ZProxy.Plug place,
Object[] args)
Creates and initializes (bind, options ...) the socket for the given plug in the proxy.
|
boolean |
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.
|
boolean |
restart(ZMsg cfg,
ZMQ.Socket socket,
ZProxy.Plug place,
Object[] args)
Performs a hot restart of the given socket.
|
ZMQ.Socket create(ZContext ctx, ZProxy.Plug place, Object[] args)
ctx
- the context used for initialization.place
- the position for the future created socket in the proxy.args
- the optional array of arguments that has been passed at the creation of the ZProxy.void configure(ZMQ.Socket socket, ZProxy.Plug place, Object[] args)
socket
- the socket to configureplace
- the position for the socket in the proxyargs
- the optional array of arguments that has been passed at the creation of the ZProxy.boolean restart(ZMsg cfg, ZMQ.Socket socket, ZProxy.Plug place, Object[] args)
cfg
- the custom configuration message sent by the control.socket
- the socket to hot restartplace
- the position for the socket in the proxyargs
- the optional array of arguments that has been passed at the creation of the ZProxy.boolean configure(ZMQ.Socket pipe, ZMsg cfg, ZMQ.Socket frontend, ZMQ.Socket backend, ZMQ.Socket capture, Object[] args)
pipe
- the control pipecfg
- the custom configuration message sent by the controlfrontend
- the frontend socketbackend
- the backend socketcapture
- the optional capture socketargs
- the optional array of arguments that has been passed at the creation of the ZProxy.boolean custom(ZMQ.Socket pipe, String cmd, ZMQ.Socket frontend, ZMQ.Socket backend, ZMQ.Socket capture, Object[] args)
pipe
- the control pipecmd
- the unrecognized commandfrontend
- the frontend socketbackend
- the backend socketcapture
- the optional capture socketargs
- the optional array of arguments that has been passed at the creation of the ZProxy.Copyright © 2023. All rights reserved.