com.metamatrix.platform.config.service
Class ActionHistory
java.lang.Object
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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DEFAULT_ACTION_COUNT_LIMIT
public static final int DEFAULT_ACTION_COUNT_LIMIT
- See Also:
- Constant Field Values
ActionHistory
public ActionHistory()
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.