|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.xbus.technical.ReceiverThreadBase net.sf.xbus.technical.mq.MQReceiverThread
public class MQReceiverThread
TODO Kommentierung
Field Summary |
---|
Fields inherited from class net.sf.xbus.technical.ReceiverThreadBase |
---|
DEFAULT_ERROR_TIMEOUT, DEFAULT_TIMEOUT |
Constructor Summary | |
---|---|
MQReceiverThread(XBUSSystem source)
Stores the interface name |
Method Summary | |
---|---|
protected java.lang.String |
getAddress()
Returns the name of the message queue. |
protected java.lang.String |
getReceiverClassName()
Returns the name of the receiver class, used for example to determine values in the configuration. |
java.lang.String |
getType()
Returns Constants.TYPE_TEXT |
protected void |
initializeThread()
Opens a MQConnection . |
protected java.lang.Object |
receive()
Receives one message. |
protected void |
registerResources(TAManager taManager)
Registers the MQConnection in the
TAManager . |
Methods inherited from class net.sf.xbus.technical.ReceiverThreadBase |
---|
checkProceed, getErrorTimeout, getSource, getTimeout, incrementErrorCounter, initializeErrorCounter, interruptThread, run |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MQReceiverThread(XBUSSystem source)
source
- name of the interface definitionMethod Detail |
---|
protected void initializeThread() throws XException
MQConnection
.
initializeThread
in class ReceiverThreadBase
XException
- if something goes wrongprotected void registerResources(TAManager taManager) throws XException
MQConnection
in the
TAManager
.
registerResources
in class ReceiverThreadBase
taManager
- the transaction manager in which the resources shall be
registered
XException
- if something goes wrongprotected java.lang.Object receive() throws XException
ReceiverThreadBase
receive
in class ReceiverThreadBase
null
when no message has
been available
XException
- if something goes wrongReceiverThreadBase.receive()
public java.lang.String getType()
Constants.TYPE_TEXT
Constants.TYPE_TEXT
protected java.lang.String getReceiverClassName()
ReceiverThreadBase
getReceiverClassName
in class ReceiverThreadBase
ReceiverThreadBase.getReceiverClassName()
protected java.lang.String getAddress()
getAddress
in class ReceiverThreadBase
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |