|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.fuin.jmsmvc4swing.jms.Subscriber
public class Subscriber
Handles a single JMS topic subscription.
| Constructor Summary | |
|---|---|
Subscriber(JmsJndiEnvironment env)
Constructor. |
|
| Method Summary | |
|---|---|
void |
close()
Unsubscribes to the topic (closes the session). |
boolean |
isClosed()
Returns if no JMS session is active. |
boolean |
isOpen()
Returns if a JMS session is active. |
void |
open(String topicName,
String methodName,
Long id,
MessageType[] type,
javax.jms.MessageListener listener)
Subscribes to a topic with a selector based on the method arguments (Opens a session to the JMS provider). |
void |
open(String topicName,
String methodName,
Long id,
MessageType type,
javax.jms.MessageListener listener)
Subscribes to a topic with a selector based on the method arguments (Opens a session to the JMS provider). |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Subscriber(JmsJndiEnvironment env)
env - Environment to use.| Method Detail |
|---|
public final void open(String topicName,
String methodName,
Long id,
MessageType type,
javax.jms.MessageListener listener)
topicName - Name of the topic to subscribe to.methodName - Name of the method for creating the selector.id - Id for creating the selector.type - Type for creating the selector.listener - Listener to handle the incoming messages.
public final void open(String topicName,
String methodName,
Long id,
MessageType[] type,
javax.jms.MessageListener listener)
topicName - Name of the topic to subscribe to.methodName - Name of the method for creating the selector.id - Id for creating the selector.type - Types for creating the selector.listener - Listener to handle the incoming messages.public final boolean isOpen()
public final boolean isClosed()
public final void close()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||