public class ZeroMQServerSocketOptions extends ServerSocketOptions
ServerSocketOptions
that include ZeroMQ-specific configuration options.Constructor and Description |
---|
ZeroMQServerSocketOptions() |
Modifier and Type | Method and Description |
---|---|
org.zeromq.ZContext |
context()
Get the
ZMQ.Context to use for IO. |
ZeroMQServerSocketOptions |
context(org.zeromq.ZContext context)
Set the
ZMQ.Context to use for IO. |
String |
listenAddresses() |
ZeroMQServerSocketOptions |
listenAddresses(String listenAddresses) |
Consumer<org.zeromq.ZMQ.Socket> |
socketConfigurer()
The
Consumer responsible for configuring the underlying ZeroMQ socket. |
ZeroMQServerSocketOptions |
socketConfigurer(Consumer<org.zeromq.ZMQ.Socket> socketConfigurer)
Set the
Consumer responsible for configure the underlying ZeroMQ socket. |
int |
socketType()
The type of the ZMQ socket to create.
|
ZeroMQServerSocketOptions |
socketType(int socketType)
Set the type of ZMQ socket to create.
|
backlog, backlog, protocolFamily, protocolFamily, reuseAddr, reuseAddr
keepAlive, keepAlive, linger, linger, prefetch, prefetch, rcvbuf, rcvbuf, sndbuf, sndbuf, tcpNoDelay, tcpNoDelay, timeout, timeout
public org.zeromq.ZContext context()
ZMQ.Context
to use for IO.ZMQ.Context
to usepublic ZeroMQServerSocketOptions context(org.zeromq.ZContext context)
ZMQ.Context
to use for IO.context
- the ZMQ.Context
to usepublic int socketType()
public ZeroMQServerSocketOptions socketType(int socketType)
socketType
- the ZMQ socket typepublic Consumer<org.zeromq.ZMQ.Socket> socketConfigurer()
Consumer
responsible for configuring the underlying ZeroMQ socket.public ZeroMQServerSocketOptions socketConfigurer(Consumer<org.zeromq.ZMQ.Socket> socketConfigurer)
Consumer
responsible for configure the underlying ZeroMQ socket.socketConfigurer
- the ZMQ.Socket configurerpublic String listenAddresses()
public ZeroMQServerSocketOptions listenAddresses(String listenAddresses)
Copyright © 2016. All rights reserved.