public class DelegatingOneWaySender extends java.lang.Object implements OneWaySender
| Constructor and Description |
|---|
DelegatingOneWaySender(java.lang.String id,
DynamicOneWaySender delegate,
org.fabric3.api.binding.zeromq.model.ZeroMQMetadata metadata) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getId() |
void |
onUpdate(java.util.List<org.fabric3.spi.federation.addressing.SocketAddress> addresses) |
void |
send(byte[] message,
int index,
org.fabric3.spi.container.invocation.WorkContext context)
Dispatches a message to a service in a non-blocking fashion.
|
void |
start()
Initializes the client and its underlying socket.
|
void |
stop()
Disposes the client and any open resources.
|
public DelegatingOneWaySender(java.lang.String id,
DynamicOneWaySender delegate,
org.fabric3.api.binding.zeromq.model.ZeroMQMetadata metadata)
public void start()
Senderpublic void stop()
Senderpublic java.lang.String getId()
getId in interface org.fabric3.spi.federation.addressing.AddressListenerpublic void onUpdate(java.util.List<org.fabric3.spi.federation.addressing.SocketAddress> addresses)
onUpdate in interface org.fabric3.spi.federation.addressing.AddressListenerpublic void send(byte[] message,
int index,
org.fabric3.spi.container.invocation.WorkContext context)
OneWaySendersend in interface OneWaySendermessage - the serialized messageindex - the operation index used to determine which intercept chain to dispatch the message tocontext - the current work context