|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.fuin.jmsmvc4swing.jms.MethodResultReceiver
public abstract class MethodResultReceiver
Base class for receivers of a method result.
| Constructor Summary | |
|---|---|
MethodResultReceiver(JmsJndiEnvironment env,
String topicName,
String methodName,
long id,
ControllerResultListener listener)
Constructor. |
|
| Method Summary | |
|---|---|
void |
cancel()
Cancels the subscription. |
protected abstract void |
handleResult(Data result)
Call the concrete message result receiver. |
boolean |
isCancelled()
Checks if the subscription was already cancelled or finished. |
void |
onMessage(javax.jms.Message message)
|
void |
subscribe()
Start subscription to the predefined topic and with the appropriate selector. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MethodResultReceiver(JmsJndiEnvironment env,
String topicName,
String methodName,
long id,
ControllerResultListener listener)
env - Environment to use.topicName - Name of the topic (defined by the controller) to send to.methodName - Name of the method that was called (used for creating the
message properties).id - Unique id of the method call.listener - Listener to be informed if messages arrive.| Method Detail |
|---|
public final void subscribe()
public final void onMessage(javax.jms.Message message)
onMessage in interface javax.jms.MessageListenerpublic final boolean isCancelled()
public final void cancel()
protected abstract void handleResult(Data result)
result - Data received.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||