Package com.adaptris.tibrv
Class StandardRendezvousClient
java.lang.Object
com.adaptris.tibrv.RendezvousClientImp
com.adaptris.tibrv.StandardRendezvousClient
- All Implemented Interfaces:
RendezvousClient
Implementation of RendezvousClient which provides reliable message delivery.
In the adapter configuration file this class is aliased as standard-rendezvous-client which is the preferred alternative to the fully qualified classname when building your configuration.
-
Field Summary
Fields inherited from class com.adaptris.tibrv.RendezvousClientImp
log, queue, transport -
Constructor Summary
Constructors -
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) Note - this does look a bit odd - creating the listener but not either returning it or retaining a reference to it.Methods inherited from class com.adaptris.tibrv.RendezvousClientImp
getDaemon, getNetwork, getQueueName, getService, init, send, setDaemon, setNetwork, setQueueName, setService, start, stop, toString
-
Constructor Details
-
StandardRendezvousClient
public StandardRendezvousClient()
-
-
Method Details
-
createMessageListener
public void createMessageListener(com.tibco.tibrv.TibrvMsgCallback callback, String sendSubject) throws com.tibco.tibrv.TibrvException Note - this does look a bit odd - creating the listener but not either returning it or retaining a reference to it. The
TibrvTransportretains a reference to it, as it (the listener) is passed in toonTibrvMsg. Also note closure is not exposed for now.- Parameters:
callback- theTibrvMsgCallback(some sort of consumer)sendSubject- the send subject, conforming to TibcoRendezvous rules- Throws:
com.tibco.tibrv.TibrvException- if any occur- See Also:
-
createConfirmationListener
public void createConfirmationListener(com.tibco.tibrv.TibrvMsgCallback callback) throws com.tibco.tibrv.TibrvException Description copied from interface:RendezvousClientCreates a
TibrvListenerfor confirmation messages, which may be useful for debugging / troubleshooting.- Parameters:
callback- theTibrvMsgCallbackto use- Throws:
com.tibco.tibrv.TibrvException- if any occur- See Also:
-
close
public void close()Description copied from interface:RendezvousClientClose this instance.
- Specified by:
closein interfaceRendezvousClient- Overrides:
closein classRendezvousClientImp- See Also:
-