xmlBlaster 2.1.0 API

org.xmlBlaster.util.queue.cache
Class CacheControlParam

java.lang.Object
  extended by org.xmlBlaster.util.queue.cache.CacheControlParam

public class CacheControlParam
extends java.lang.Object

Class used to configure and control the swapping behaviour (and performance) of the cache queue.

Author:
michele@laghi.eu, xmlBlaster@marcelruff.info

Field Summary
 long maxBytes
          The maximum size of the queue.
 long putDamper
          The number of milliseconds to wait during a put action.
 long reloadSwapBytes
          The reloadSwapBytes is the size in bytes to take each time data is swapped from the persistent queue to reload the transient queue.
 long reloadSwapLevel
          The reloadSwapLevel is the limit size in bytes under which the cache queue should start to take entries from the persistent store (commonly the JDBC queue) to reload it into transient storage (commonly the RAM queue).
 long storeSwapBytes
          The storeSwapBytes is the size in bytes to take each time data is swapped from the transient queue to the persistent queue.
 long storeSwapLevel
          The storeSwapLevel is the limit size in bytes over which the cache queue should start to take entries from the transient store (commonly the RAM queue) to store it on the persistent storage (commonly the Jdbc queue).
 
Constructor Summary
CacheControlParam(QueuePropertyBase property)
          Constructs a CacheControlParam by using the queue properties.
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

maxBytes

public long maxBytes
The maximum size of the queue. It is used as a reference for the other parameter. The levels and the sizes should never exceed this value.


storeSwapLevel

public long storeSwapLevel
The storeSwapLevel is the limit size in bytes over which the cache queue should start to take entries from the transient store (commonly the RAM queue) to store it on the persistent storage (commonly the Jdbc queue).


storeSwapBytes

public long storeSwapBytes
The storeSwapBytes is the size in bytes to take each time data is swapped from the transient queue to the persistent queue.


reloadSwapLevel

public long reloadSwapLevel
The reloadSwapLevel is the limit size in bytes under which the cache queue should start to take entries from the persistent store (commonly the JDBC queue) to reload it into transient storage (commonly the RAM queue).


reloadSwapBytes

public long reloadSwapBytes
The reloadSwapBytes is the size in bytes to take each time data is swapped from the persistent queue to reload the transient queue.


putDamper

public long putDamper
The number of milliseconds to wait during a put action. This would delay entries in such a way that some swap cycles could be avoided, increasing the overall throughput of the queue, limiting the CPU consumption and the expensive disk i/o accesses.

Constructor Detail

CacheControlParam

public CacheControlParam(QueuePropertyBase property)
Constructs a CacheControlParam by using the queue properties.


xmlBlaster 2.1.0 API

Copyright © 1999-2011 The xmlBlaster.org contributers.