Package com.adaptris.core.tibrv
Class RendezvousConsumer
java.lang.Object
com.adaptris.core.AdaptrisMessageWorkerImp
com.adaptris.core.AdaptrisMessageConsumerImp
com.adaptris.core.tibrv.RendezvousConsumer
- All Implemented Interfaces:
AdaptrisComponent
,AdaptrisMessageConsumer
,AdaptrisMessageWorker
,ComponentLifecycle
,ComponentLifecycleExtension
,LicensedComponent
,MessageEventGenerator
,StateManagedComponent
,com.tibco.tibrv.TibrvMsgCallback
@ComponentProfile(summary="Receive messages from Tibco Rendezvous",
tag="consumer,tibco",
recommended=com.adaptris.core.NullConnection.class)
public class RendezvousConsumer
extends AdaptrisMessageConsumerImp
implements com.tibco.tibrv.TibrvMsgCallback, LicensedComponent
Implementation of AdaptrisMessageConsumer
which handles Tibco Rendezvous messages.
In the adapter configuration file this class is aliased as tibrv-rendezvous-consumer which is the preferred alternative to the fully qualified classname when building your configuration.
License Required: ENTERPRISE
-
Field Summary
Fields inherited from class com.adaptris.core.AdaptrisMessageWorkerImp
log
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
Returns theRendezvousClient
to use.Returns theRendezvousTranslator
to use.The Subject we are consuming from.void
init()
boolean
protected String
void
onMsg
(com.tibco.tibrv.TibrvListener listener, com.tibco.tibrv.TibrvMsg tibrvMsg) final void
prepare()
void
Sets theRendezvousClient
to use.void
Sets the theRendezvousTranslator
to use.void
setSubject
(String subject) The Subject we are consuming from.void
start()
void
stop()
protected String
subject()
Methods inherited from class com.adaptris.core.AdaptrisMessageConsumerImp
changeState, registerAdaptrisMessageListener, renameThread, requestClose, requestInit, requestStart, requestStop, retrieveAdaptrisMessageListener, retrieveComponentState
Methods inherited from class com.adaptris.core.AdaptrisMessageWorkerImp
createName, createQualifier, decode, encode, getEncoder, getIsTrackingEndpoint, getMessageFactory, getUniqueId, handleConnectionException, isTrackingEndpoint, registerConnection, registerEncoderMessageFactory, retrieveConnection, setEncoder, setIsTrackingEndpoint, setMessageFactory, setUniqueId, withMessageFactory, withUniqueID
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.adaptris.core.AdaptrisComponent
getUniqueId
Methods inherited from interface com.adaptris.core.AdaptrisMessageConsumer
consumeLocationKey
Methods inherited from interface com.adaptris.core.AdaptrisMessageWorker
decode, encode, getEncoder, getMessageFactory, handleConnectionException, registerConnection, retrieveConnection, setEncoder, setMessageFactory
Methods inherited from interface com.adaptris.core.MessageEventGenerator
createName, createQualifier, isTrackingEndpoint
-
Constructor Details
-
RendezvousConsumer
public RendezvousConsumer()Creates a new instance. Defaults to new
StandardRendezvousClient
andStandardRendezvousTranslator
.
-
-
Method Details
-
prepare
- Specified by:
prepare
in interfaceComponentLifecycleExtension
- Throws:
CoreException
-
isEnabled
- Specified by:
isEnabled
in interfaceLicensedComponent
-
init
- Specified by:
init
in interfaceComponentLifecycle
- Throws:
CoreException
- See Also:
-
onMsg
public void onMsg(com.tibco.tibrv.TibrvListener listener, com.tibco.tibrv.TibrvMsg tibrvMsg) - Specified by:
onMsg
in interfacecom.tibco.tibrv.TibrvMsgCallback
- See Also:
-
#onMsg(com.tibco.tibrv.TibrvListener, com.tibco.tibrv.TibrvMsg)
-
start
- Specified by:
start
in interfaceComponentLifecycle
- Throws:
CoreException
- See Also:
-
stop
public void stop()- Specified by:
stop
in interfaceComponentLifecycle
- See Also:
-
close
public void close()- Specified by:
close
in interfaceComponentLifecycle
- See Also:
-
getRendezvousTranslator
Returns the
RendezvousTranslator
to use.- Returns:
- the
RendezvousTranslator
to use
-
setRendezvousTranslator
Sets the the
RendezvousTranslator
to use.- Parameters:
r
- theRendezvousTranslator
to use
-
getRendezvousClient
Returns the
RendezvousClient
to use.- Returns:
- the
RendezvousClient
to use
-
setRendezvousClient
Sets the
RendezvousClient
to use.- Parameters:
r
- theRendezvousClient
to use
-
subject
-
newThreadName
- Overrides:
newThreadName
in classAdaptrisMessageConsumerImp
-
getSubject
The Subject we are consuming from. -
setSubject
The Subject we are consuming from.
-