Package com.swiftmq.swiftlet.queue
Class FlowController
- java.lang.Object
-
- com.swiftmq.swiftlet.queue.FlowController
-
public abstract class FlowController extends java.lang.ObjectAbstract base class for flow controllers. A flow controller computes a delay, dependent on throughput, queue backlog, and transaction size.- Author:
- IIT GmbH, Bremen/Germany, Copyright (c) 2000-2002, All Rights Reserved
-
-
Field Summary
Fields Modifier and Type Field Description protected longlastDelayprotected intqueueSizeprotected longreceiveCountprotected longreceiveCountCallsprotected intreceiverCountprotected longsentCountprotected longsentCountCallsprotected longtimestamp
-
Constructor Summary
Constructors Constructor Description FlowController()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description longgetLastDelay()Returns the last computed fc delay.abstract longgetNewDelay()Computes and returns a new delay.intgetStartQueueSize()Returns the FC start queue sizevoidsetQueueSize(int queueSize)Sets the queue size (message count).voidsetReceiveMessageCount(int count)Sets the recive message count.voidsetReceiverCount(int count)Sets the receiver count.voidsetSentMessageCount(int count)Sets the sent message count.java.lang.StringtoString()
-
-
-
Field Detail
-
receiverCount
protected int receiverCount
-
queueSize
protected int queueSize
-
lastDelay
protected long lastDelay
-
sentCount
protected long sentCount
-
sentCountCalls
protected long sentCountCalls
-
receiveCount
protected long receiveCount
-
receiveCountCalls
protected long receiveCountCalls
-
timestamp
protected long timestamp
-
-
Method Detail
-
getStartQueueSize
public int getStartQueueSize()
Returns the FC start queue size- Returns:
- start queue size
-
setQueueSize
public void setQueueSize(int queueSize)
Sets the queue size (message count).- Parameters:
queueSize- queue size.
-
setReceiverCount
public void setReceiverCount(int count)
Sets the receiver count.- Parameters:
count- receiver count.
-
setReceiveMessageCount
public void setReceiveMessageCount(int count)
Sets the recive message count.- Parameters:
count- recive message count.
-
setSentMessageCount
public void setSentMessageCount(int count)
Sets the sent message count.- Parameters:
count- sent message count.
-
getLastDelay
public long getLastDelay()
Returns the last computed fc delay.- Returns:
- delay.
-
getNewDelay
public abstract long getNewDelay()
Computes and returns a new delay.- Returns:
- delay.
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-