|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.logicblaze.lingo.jms.impl.ResultJoinHandler
public class ResultJoinHandler
A ReplyHandler
which can handle join
multiple results to the same request which are then aggregated together into
a single value.
Constructor Summary | |
---|---|
ResultJoinHandler(Marshaller marshaller,
ResultJoinStrategy joinStrategy)
|
Method Summary | |
---|---|
int |
getResponseCount()
|
long |
getTimeout()
|
boolean |
handle(javax.jms.Message message)
Processes the message, returning true if this is the last method of a lifecycle so that the handler can be discarded |
org.springframework.remoting.support.RemoteInvocationResult |
pollResult()
|
void |
setTimeout(long timeout)
Sets the Object.wait(long) method timeout period before resuming the
wait. |
org.springframework.remoting.support.RemoteInvocationResult |
waitForResult()
This method will block the calling thread until the result is available. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ResultJoinHandler(Marshaller marshaller, ResultJoinStrategy joinStrategy)
Method Detail |
---|
public boolean handle(javax.jms.Message message) throws javax.jms.JMSException
ReplyHandler
handle
in interface ReplyHandler
javax.jms.JMSException
public org.springframework.remoting.support.RemoteInvocationResult waitForResult()
public org.springframework.remoting.support.RemoteInvocationResult pollResult()
public int getResponseCount()
public long getTimeout()
public void setTimeout(long timeout)
Object.wait(long)
method timeout period before resuming the
wait.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |