public class NonReliableOneWaySender extends java.lang.Object implements OneWaySender, java.lang.Thread.UncaughtExceptionHandler
| Constructor and Description |
|---|
NonReliableOneWaySender(java.lang.String id,
ContextManager manager,
java.util.List<org.fabric3.spi.federation.addressing.SocketAddress> addresses,
long pollTimeout,
org.fabric3.api.binding.zeromq.model.ZeroMQMetadata metadata,
MessagingMonitor monitor) |
| 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 workContext)
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.
|
void |
uncaughtException(java.lang.Thread t,
java.lang.Throwable e) |
public NonReliableOneWaySender(java.lang.String id,
ContextManager manager,
java.util.List<org.fabric3.spi.federation.addressing.SocketAddress> addresses,
long pollTimeout,
org.fabric3.api.binding.zeromq.model.ZeroMQMetadata metadata,
MessagingMonitor monitor)
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 workContext)
OneWaySendersend in interface OneWaySendermessage - the serialized messageindex - the operation index used to determine which intercept chain to dispatch the message toworkContext - the current work contextpublic void uncaughtException(java.lang.Thread t,
java.lang.Throwable e)
uncaughtException in interface java.lang.Thread.UncaughtExceptionHandler