public interface RendezvousClient
Interface to Tibco Rendezvous. Implementations of this class may not be thread safe.
Modifier and Type | Method and Description |
---|---|
void |
close()
Close this instance.
|
void |
createConfirmationListener(com.tibco.tibrv.TibrvMsgCallback callback)
Creates a
TibrvListener for confirmation messages, which
may be useful for debugging / troubleshooting. |
void |
createMessageListener(com.tibco.tibrv.TibrvMsgCallback callback,
java.lang.String sendSubject)
Creates a
TibrvListener using the passed callback
and sendSubject . |
void |
init()
Initialise this instance.
|
void |
send(com.tibco.tibrv.TibrvMsg tibrvMsg)
Sends the passed
TibrvMsg . |
void |
start()
Start message delivery.
|
void |
stop()
Stop message delivery.
|
void createMessageListener(com.tibco.tibrv.TibrvMsgCallback callback, java.lang.String sendSubject) throws com.tibco.tibrv.TibrvException
Creates a TibrvListener
using the passed callback
and sendSubject
. Not part of init
as only
required by client code which consumes messages.
callback
- the TibrvMsgCallback
(some sort of
consumer)sendSubject
- the send subject, conforming to TibcoRendezvous rulescom.tibco.tibrv.TibrvException
- if any occurvoid createConfirmationListener(com.tibco.tibrv.TibrvMsgCallback callback) throws com.tibco.tibrv.TibrvException
Creates a TibrvListener
for confirmation messages, which
may be useful for debugging / troubleshooting.
callback
- the TibrvMsgCallback
to usecom.tibco.tibrv.TibrvException
- if any occurvoid send(com.tibco.tibrv.TibrvMsg tibrvMsg) throws com.tibco.tibrv.TibrvException
Sends the passed TibrvMsg
.
tibrvMsg
- the message to sendcom.tibco.tibrv.TibrvException
- if any occurvoid init() throws com.tibco.tibrv.TibrvException
Initialise this instance.
com.tibco.tibrv.TibrvException
- if any occurvoid start() throws com.tibco.tibrv.TibrvException
Start message delivery.
com.tibco.tibrv.TibrvException
- if any occurvoid stop()
Stop message delivery.
void close()
Close this instance.