public class RoundRobinSocketMultiplexer extends java.lang.Object implements SocketMultiplexer
| Constructor and Description |
|---|
RoundRobinSocketMultiplexer(ContextManager manager,
int socketType,
org.fabric3.api.binding.zeromq.model.ZeroMQMetadata metadata) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes the underlying collection of sockets.
|
org.zeromq.ZMQ.Socket |
get()
Returns the next available socket.
|
java.util.Collection<org.zeromq.ZMQ.Socket> |
getAll()
Returns all active sockets.
|
boolean |
isAvailable()
Returns true if the multiplexer has an available socket.
|
void |
update(java.util.List<org.fabric3.spi.federation.addressing.SocketAddress> addresses)
Replaces the previous list of available sockets with a new one.
|
public RoundRobinSocketMultiplexer(ContextManager manager, int socketType, org.fabric3.api.binding.zeromq.model.ZeroMQMetadata metadata)
public void update(java.util.List<org.fabric3.spi.federation.addressing.SocketAddress> addresses)
SocketMultiplexerupdate in interface SocketMultiplexeraddresses - the new socket addressespublic org.zeromq.ZMQ.Socket get()
SocketMultiplexerget in interface SocketMultiplexerpublic java.util.Collection<org.zeromq.ZMQ.Socket> getAll()
SocketMultiplexergetAll in interface SocketMultiplexerpublic boolean isAvailable()
SocketMultiplexerisAvailable in interface SocketMultiplexerpublic void close()
SocketMultiplexerclose in interface SocketMultiplexer