com.metamatrix.platform.config.service
Class ActionHistory

java.lang.Object
  extended by com.metamatrix.platform.config.service.ActionHistory

public class ActionHistory
extends java.lang.Object

This class maintains a history of actions. The "maximum size" of the history can be specified. However, when the history is pruned, it is done so in whole transactions.


Field Summary
static int DEFAULT_ACTION_COUNT_LIMIT
           
 
Constructor Summary
ActionHistory()
           
 
Method Summary
 void addActionsForTransaction(java.util.List newActions)
           
 void clearHistory()
           
 java.util.List getHistory()
           
 int getHistoryLimit()
           
 int getHistorySize()
           
 java.util.List pop(int count)
           
protected  void pruneIfRequired()
           
 void setHistoryLimit(int newLimit)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_ACTION_COUNT_LIMIT

public static final int DEFAULT_ACTION_COUNT_LIMIT
See Also:
Constant Field Values
Constructor Detail

ActionHistory

public ActionHistory()
Method Detail

addActionsForTransaction

public void addActionsForTransaction(java.util.List newActions)

getHistorySize

public int getHistorySize()

getHistory

public java.util.List getHistory()

pop

public java.util.List pop(int count)

getHistoryLimit

public int getHistoryLimit()

clearHistory

public void clearHistory()

setHistoryLimit

public void setHistoryLimit(int newLimit)

pruneIfRequired

protected void pruneIfRequired()


Copyright © 2009. All Rights Reserved.