org.jboss.messaging.core.postoffice.impl
Class FlowControllerImpl

java.lang.Object
  extended by org.jboss.messaging.core.postoffice.impl.FlowControllerImpl
All Implemented Interfaces:
FlowController

public class FlowControllerImpl
extends java.lang.Object
implements FlowController

A FlowControllerImpl

Author:
Tim Fox

Constructor Summary
FlowControllerImpl(SimpleString address, PostOffice postOffice)
           
 
Method Summary
 int getInitialCredits(int windowSize, ServerProducer producer)
           
 void messageAcknowledged()
           
 void requestAndSendCredits(ServerProducer producer, int credits)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FlowControllerImpl

public FlowControllerImpl(SimpleString address,
                          PostOffice postOffice)
                   throws java.lang.Exception
Throws:
java.lang.Exception
Method Detail

getInitialCredits

public int getInitialCredits(int windowSize,
                             ServerProducer producer)
                      throws java.lang.Exception
Specified by:
getInitialCredits in interface FlowController
Throws:
java.lang.Exception

messageAcknowledged

public void messageAcknowledged()
                         throws java.lang.Exception
Specified by:
messageAcknowledged in interface FlowController
Throws:
java.lang.Exception

requestAndSendCredits

public void requestAndSendCredits(ServerProducer producer,
                                  int credits)
                           throws java.lang.Exception
Specified by:
requestAndSendCredits in interface FlowController
Throws:
java.lang.Exception


Copyright © 2006 JBoss Inc. All Rights Reserved.