public class JMSTransportSender extends Object implements com.levigo.jadice.server.shared.transport.internal.TransportSender
TransportSender
implementation.Constructor and Description |
---|
JMSTransportSender(com.levigo.jadice.server.internal.JobInternal job,
String uuid,
javax.jms.QueueSession session,
javax.jms.QueueSender messageProducer) |
Modifier and Type | Method and Description |
---|---|
com.levigo.jadice.server.shared.transport.internal.TransportSender |
createNestedSender(com.levigo.jadice.server.shared.transport.internal.NestedTransportReceiver receiver)
Create a nested transport sender.
|
void |
failed(com.levigo.util.log.qualified.QualifiedLogEvent qle) |
void |
finishTransport()
Method must be called at the end of the transport to signalize receiver that no more objects
will be send.
|
void |
sendInteger(int i) |
void |
sendObject(Serializable o) |
void |
sendString(String s) |
public JMSTransportSender(com.levigo.jadice.server.internal.JobInternal job, String uuid, javax.jms.QueueSession session, javax.jms.QueueSender messageProducer)
public void sendInteger(int i) throws com.levigo.jadice.server.shared.transport.internal.TransportException
sendInteger
in interface com.levigo.jadice.server.shared.transport.internal.TransportSender
com.levigo.jadice.server.shared.transport.internal.TransportException
public void sendObject(Serializable o) throws com.levigo.jadice.server.shared.transport.internal.TransportException
sendObject
in interface com.levigo.jadice.server.shared.transport.internal.TransportSender
com.levigo.jadice.server.shared.transport.internal.TransportException
public void sendString(String s) throws com.levigo.jadice.server.shared.transport.internal.TransportException
sendString
in interface com.levigo.jadice.server.shared.transport.internal.TransportSender
com.levigo.jadice.server.shared.transport.internal.TransportException
public com.levigo.jadice.server.shared.transport.internal.TransportSender createNestedSender(com.levigo.jadice.server.shared.transport.internal.NestedTransportReceiver receiver) throws com.levigo.jadice.server.shared.transport.internal.TransportException
NestedTransportReceiver
is initialized
as needed and sent to the other side where it will receive messages sent via the newly created
sender.createNestedSender
in interface com.levigo.jadice.server.shared.transport.internal.TransportSender
receiver
- com.levigo.jadice.server.shared.transport.internal.TransportException
public void failed(com.levigo.util.log.qualified.QualifiedLogEvent qle)
failed
in interface com.levigo.jadice.server.shared.transport.internal.TransportSender
public void finishTransport() throws com.levigo.jadice.server.shared.transport.internal.TransportException
com.levigo.jadice.server.shared.transport.internal.TransportSender
finishTransport
in interface com.levigo.jadice.server.shared.transport.internal.TransportSender
com.levigo.jadice.server.shared.transport.internal.TransportException
Copyright © 2017 levigo holding gmbh. All rights reserved.