|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface CircuitEnd
A CircuitEnd is a pair consisting of one message producer and one message consumer, that represents one end of a test circuit. It is a standard unit of connectivity allowing a full-duplex conversation to be held, provided both the consumer and producer are instantiated and configured.
Responsibilities |
---|
Provide a message producer for sending messages. |
Provide a message consumer for receiving messages. |
ConversationFactory
so that it accepts these as the basic conversation
connection units.Method Summary | |
---|---|
void |
close()
Closes the message producers and consumers and the sessions, associated with this circuit end point. |
MessageConsumer |
getConsumer()
Gets the message consumer at this circuit end point. |
ExceptionMonitor |
getExceptionMonitor()
Returns the exception monitor for reporting on exceptions received on this circuit end. |
MessageMonitor |
getMessageMonitor()
Returns the message monitor for reporting on received messages on this circuit end. |
MessageProducer |
getProducer()
Gets the message producer at this circuit end point. |
Session |
getSession()
Gets the JMS Session associated with this circuit end point. |
void |
send(Message message)
Send the specified message over the producer at this end point. |
Method Detail |
---|
MessageProducer getProducer()
MessageConsumer getConsumer()
void send(Message message) throws JMSException
message
- The message to send.
JMSException
- Any JMS exception occuring during the send is allowed to fall through.Session getSession()
void close() throws JMSException
JMSException
- Any JMSExceptions occurring during the close are allowed to fall through.MessageMonitor getMessageMonitor()
ExceptionMonitor getExceptionMonitor()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |