|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectca.uhn.hl7v2.protocol.impl.JMSTopicAdapter
public class JMSTopicAdapter
An implementation of JMSDestination
that uses an underlying
Topic.
Constructor Summary | |
---|---|
JMSTopicAdapter(javax.jms.TopicConnection theConnection,
javax.jms.Topic theDestination)
|
|
JMSTopicAdapter(javax.jms.TopicConnection theConnection,
javax.jms.Topic theDestination,
java.lang.String theMessageSelector)
|
Method Summary | |
---|---|
void |
connect()
Creates a new session, sender/publisher, and receiver/subscriber. |
javax.jms.TextMessage |
createMessage()
|
void |
disconnect()
Closes the JMS session. |
javax.jms.Connection |
getConnection()
|
java.lang.String |
getName()
|
boolean |
isConnected()
|
javax.jms.Message |
receive()
|
void |
send(javax.jms.Message theMessage)
Sends the given message to the JMS destination. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JMSTopicAdapter(javax.jms.TopicConnection theConnection, javax.jms.Topic theDestination)
theConnection
- the connection over which messages are written and readtheDestination
- the destination to/from which messages are written/readpublic JMSTopicAdapter(javax.jms.TopicConnection theConnection, javax.jms.Topic theDestination, java.lang.String theMessageSelector)
theConnection
- the connection over which messages are written and readtheDestination
- the destination to/from which messages are written/readtheMessageSelector
- a JMS message selector which restricts the inbound
messages that are received (see JMS docs)Method Detail |
---|
public java.lang.String getName() throws javax.jms.JMSException
getName
in interface JMSDestination
javax.jms.JMSException
JMSDestination.getName()
public javax.jms.TextMessage createMessage() throws javax.jms.JMSException
createMessage
in interface JMSDestination
javax.jms.JMSException
JMSDestination.createMessage()
public void connect() throws javax.jms.JMSException
JMSDestination
connect
in interface JMSDestination
javax.jms.JMSException
JMSDestination.connect()
public void disconnect() throws javax.jms.JMSException
JMSDestination
disconnect
in interface JMSDestination
javax.jms.JMSException
JMSDestination.disconnect()
public boolean isConnected()
isConnected
in interface JMSDestination
JMSDestination.isConnected()
public void send(javax.jms.Message theMessage) throws javax.jms.JMSException
JMSDestination
send
in interface JMSDestination
theMessage
- message to send
javax.jms.JMSException
JMSDestination.send(javax.jms.Message)
public javax.jms.Message receive() throws javax.jms.JMSException
receive
in interface JMSDestination
javax.jms.JMSException
JMSDestination.receive()
public javax.jms.Connection getConnection()
getConnection
in interface JMSDestination
JMSDestination.getConnection()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |