org.drools.grid.internal.responsehandlers
Class BlockingMessageResponseHandler

java.lang.Object
  extended by org.drools.grid.internal.responsehandlers.AbstractBaseResponseHandler
      extended by org.drools.grid.internal.responsehandlers.BlockingMessageResponseHandler
All Implemented Interfaces:
MessageReceiverHandler

public class BlockingMessageResponseHandler
extends AbstractBaseResponseHandler


Field Summary
 long initialWaitTime
           
 
Constructor Summary
BlockingMessageResponseHandler()
           
 
Method Summary
 Message getMessage()
           
 Message getMessage(long initialWaitTime, long timeout)
           
 void messageReceived(Conversation conversation, Message message)
           
 void setInitialWaitTime(long initialWaitTime)
           
 void setTimeout(long timeout)
           
 
Methods inherited from class org.drools.grid.internal.responsehandlers.AbstractBaseResponseHandler
exceptionReceived, getError, hasError, isDone, setDone, setError
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

initialWaitTime

public long initialWaitTime
Constructor Detail

BlockingMessageResponseHandler

public BlockingMessageResponseHandler()
Method Detail

messageReceived

public void messageReceived(Conversation conversation,
                            Message message)

getMessage

public Message getMessage()
                   throws RuntimeException,
                          TimeoutException
Throws:
RuntimeException
TimeoutException

getMessage

public Message getMessage(long initialWaitTime,
                          long timeout)
                   throws RuntimeException,
                          TimeoutException
Throws:
RuntimeException
TimeoutException

setTimeout

public void setTimeout(long timeout)

setInitialWaitTime

public void setInitialWaitTime(long initialWaitTime)


Copyright © 2001-2014 JBoss by Red Hat. All Rights Reserved.