Package com.adaptris.tibrv
Interface RendezvousClient
- All Known Implementing Classes:
CertifiedRendezvousClient,RendezvousClientImp,StandardRendezvousClient
public interface RendezvousClient
Interface to Tibco Rendezvous. Implementations of this class may not be thread safe.
-
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Close this instance.voidcreateConfirmationListener(com.tibco.tibrv.TibrvMsgCallback callback) Creates aTibrvListenerfor confirmation messages, which may be useful for debugging / troubleshooting.voidcreateMessageListener(com.tibco.tibrv.TibrvMsgCallback callback, String sendSubject) Creates aTibrvListenerusing the passedcallbackandsendSubject.voidinit()Initialise this instance.voidsend(com.tibco.tibrv.TibrvMsg tibrvMsg) Sends the passedTibrvMsg.voidstart()Start message delivery.voidstop()Stop message delivery.
-
Method Details
-
createMessageListener
void createMessageListener(com.tibco.tibrv.TibrvMsgCallback callback, String sendSubject) throws com.tibco.tibrv.TibrvException Creates a
TibrvListenerusing the passedcallbackandsendSubject. Not part ofinitas only required by client code which consumes messages.- Parameters:
callback- theTibrvMsgCallback(some sort of consumer)sendSubject- the send subject, conforming to TibcoRendezvous rules- Throws:
com.tibco.tibrv.TibrvException- if any occur
-
createConfirmationListener
void createConfirmationListener(com.tibco.tibrv.TibrvMsgCallback callback) throws com.tibco.tibrv.TibrvException Creates a
TibrvListenerfor confirmation messages, which may be useful for debugging / troubleshooting.- Parameters:
callback- theTibrvMsgCallbackto use- Throws:
com.tibco.tibrv.TibrvException- if any occur
-
send
void send(com.tibco.tibrv.TibrvMsg tibrvMsg) throws com.tibco.tibrv.TibrvException Sends the passed
TibrvMsg.- Parameters:
tibrvMsg- the message to send- Throws:
com.tibco.tibrv.TibrvException- if any occur
-
init
void init() throws com.tibco.tibrv.TibrvExceptionInitialise this instance.
- Throws:
com.tibco.tibrv.TibrvException- if any occur
-
start
void start() throws com.tibco.tibrv.TibrvExceptionStart message delivery.
- Throws:
com.tibco.tibrv.TibrvException- if any occur
-
stop
void stop()Stop message delivery.
-
close
void close()Close this instance.
-