Package com.swiftmq.swiftlet.queue
Class FlowController
- java.lang.Object
-
- com.swiftmq.swiftlet.queue.FlowController
-
public abstract class FlowController extends java.lang.Object
Abstract 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 long
lastDelay
protected int
queueSize
protected long
receiveCount
protected long
receiveCountCalls
protected int
receiverCount
protected long
sentCount
protected long
sentCountCalls
protected long
timestamp
-
Constructor Summary
Constructors Constructor Description FlowController()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description long
getLastDelay()
Returns the last computed fc delay.abstract long
getNewDelay()
Computes and returns a new delay.int
getStartQueueSize()
Returns the FC start queue sizevoid
setQueueSize(int queueSize)
Sets the queue size (message count).void
setReceiveMessageCount(int count)
Sets the recive message count.void
setReceiverCount(int count)
Sets the receiver count.void
setSentMessageCount(int count)
Sets the sent message count.java.lang.String
toString()
-
-
-
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:
toString
in classjava.lang.Object
-
-