com.miginfocom.util
Class PropertyHistoryLog

java.lang.Object
  extended by com.miginfocom.util.PropertyHistoryLog

public class PropertyHistoryLog
extends java.lang.Object

Since:
6.0

Field Summary
static int SIZE_PER_CONSUMER
          The maximum size is calculated per cunsumer.
static int SIZE_PER_JVM
          The maximum size is the total number of entries in the JVM.
static int SIZE_PER_PROPERTY_KEY
          The maximum size is calculated per property key.
 
Method Summary
 void add(com.miginfocom.util.PropertyHistoryLog.PropertyLogEntry le)
           
static PropertyHistoryLog getInstance()
          Returns an instance of this class using the default null context.
 void setMaxHistorySize(int size, int sizeType)
          Sets the maximum size of the history.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SIZE_PER_JVM

public static final int SIZE_PER_JVM
The maximum size is the total number of entries in the JVM.

See Also:
Constant Field Values

SIZE_PER_CONSUMER

public static final int SIZE_PER_CONSUMER
The maximum size is calculated per cunsumer.

See Also:
Constant Field Values

SIZE_PER_PROPERTY_KEY

public static final int SIZE_PER_PROPERTY_KEY
The maximum size is calculated per property key.

See Also:
Constant Field Values
Method Detail

getInstance

public static final PropertyHistoryLog getInstance()
Returns an instance of this class using the default null context. Creates the instance the first time.

Returns:
An instance of this class.

add

public void add(com.miginfocom.util.PropertyHistoryLog.PropertyLogEntry le)

setMaxHistorySize

public void setMaxHistorySize(int size,
                              int sizeType)
Sets the maximum size of the history.

Note that only if the mode is set to #SIZE_PER_JVM the size will be adjusted directly. Otherwise the size will be adjusted when history entries are added to the type.

Parameters:
size - The new size.
sizeType - How the size should be calculated. #SIZE_PER_JVM, #SIZE_PER_CONSUMER or #SIZE_PER_PROPERTY.


Copyright © 2009 MiG InfoCom AB. All Rights Reserved.