org.egothor.cache.multiQueue
Interface MultiQueueFunction
public interface MultiQueueFunction
Interface used by MQ algorithm to compute the queue number according to frequency of access.
Method Summary |
byte |
queueNumber(long frequency)
Computes the queue number according to the specified frequency. |
queueNumber
byte queueNumber(long frequency)
- Computes the queue number according to the specified frequency.
- Parameters:
frequency
- frequency of a request
- Returns:
- queue number the request with the specified number of requests belongs to