@ComponentProfile(summary="Send messages to Tibco Rendezvous", tag="producer,tibco", recommended=com.adaptris.core.NullConnection.class) public class RendezvousProducer extends ProduceOnlyProducerImp implements com.tibco.tibrv.TibrvMsgCallback, LicensedComponent
Implementation of AdaptrisMessageProducee
which handles Tibco Rendezvous messages.
Implements TibrvMsgCallback
to handle confirmation messages which are received if this class is used in conjunction
with CertifiedRendezvousClient
.
In the adapter configuration file this class is aliased as tibrv-rendezvous-producer which is the preferred alternative to the fully qualified classname when building your configuration.
License Required: ENTERPRISE
log
CONFIRMATION_ID_KEY
Constructor and Description |
---|
RendezvousProducer()
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
void |
close() |
RendezvousClient |
getRendezvousClient()
Returns the
RendezvousClient to use. |
RendezvousTranslator |
getRendezvousTranslator()
Returns the
RendezvousTranslator to use. |
void |
init() |
boolean |
isEnabled(License license) |
void |
onMsg(com.tibco.tibrv.TibrvListener listner,
com.tibco.tibrv.TibrvMsg tibrvMsg) |
void |
prepare() |
void |
produce(AdaptrisMessage msg,
ProduceDestination destination) |
void |
setRendezvousClient(RendezvousClient r)
Sets the
RendezvousClient to use. |
void |
setRendezvousTranslator(RendezvousTranslator r)
Sets the the
RendezvousTranslator to use. |
void |
start() |
void |
stop() |
java.lang.String |
toString() |
produce, request, request, request, request
getDestination, setDestination
createName, createQualifier, decode, encode, getEncoder, getIsConfirmation, getIsTrackingEndpoint, getMessageFactory, getUniqueId, handleConnectionException, isConfirmation, isTrackingEndpoint, registerConnection, registerEncoderMessageFactory, retrieveConnection, setEncoder, setIsConfirmation, setIsTrackingEndpoint, setMessageFactory, setUniqueId, withMessageFactory
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
decode, encode, getEncoder, getMessageFactory, handleConnectionException, registerConnection, retrieveConnection, setEncoder, setMessageFactory
getUniqueId
createName, createQualifier, isConfirmation, isTrackingEndpoint
public RendezvousProducer()
Creates a new instance. Defaults to new
StandardRendezvousClient
and
StandardRendezvousTranslator
.
public final void prepare() throws CoreException
prepare
in interface ComponentLifecycleExtension
CoreException
public boolean isEnabled(License license)
isEnabled
in interface LicensedComponent
public void init() throws CoreException
init
in interface ComponentLifecycle
CoreException
ComponentLifecycle.init()
public void start() throws CoreException
start
in interface ComponentLifecycle
CoreException
ComponentLifecycle.start()
public void stop()
stop
in interface ComponentLifecycle
ComponentLifecycle.stop()
public void close()
close
in interface ComponentLifecycle
ComponentLifecycle.close()
public void onMsg(com.tibco.tibrv.TibrvListener listner, com.tibco.tibrv.TibrvMsg tibrvMsg)
onMsg
in interface com.tibco.tibrv.TibrvMsgCallback
(com.tibco.tibrv.TibrvListener, com.tibco.tibrv.TibrvMsg)
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public void produce(AdaptrisMessage msg, ProduceDestination destination) throws ProduceException
produce
in interface AdaptrisMessageSender
ProduceException
#produce(com.adaptris.core.AdaptrisMessage,
com.adaptris.core.ProduceDestination)
public RendezvousTranslator getRendezvousTranslator()
Returns the RendezvousTranslator
to use.
RendezvousTranslator
to usepublic void setRendezvousTranslator(RendezvousTranslator r)
Sets the the RendezvousTranslator
to use.
r
- the RendezvousTranslator
to usepublic RendezvousClient getRendezvousClient()
Returns the RendezvousClient
to use.
RendezvousClient
to usepublic void setRendezvousClient(RendezvousClient r)
Sets the RendezvousClient
to use.
r
- the RendezvousClient
to use