com.planet_ink.coffee_mud.core.database
Class BackLogLoader

java.lang.Object
  extended by com.planet_ink.coffee_mud.core.database.BackLogLoader

public class BackLogLoader
extends java.lang.Object


Field Summary
protected  java.util.Map<java.lang.String,int[]> counters
           
protected  DBConnector DB
           
 
Constructor Summary
BackLogLoader(DBConnector newDB)
           
 
Method Summary
 void addBackLogEntry(java.lang.String channelName, java.lang.String entry)
           
 java.util.List<Pair<java.lang.String,java.lang.Long>> getBackLogEntries(java.lang.String channelName, int newestToSkip, int numToReturn)
           
protected  int getCounter(java.lang.String channelName, boolean bump)
           
 void trimBackLogEntries(java.lang.String[] channels, int maxMessages, long oldestTime)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DB

protected DBConnector DB

counters

protected java.util.Map<java.lang.String,int[]> counters
Constructor Detail

BackLogLoader

public BackLogLoader(DBConnector newDB)
Method Detail

getCounter

protected int getCounter(java.lang.String channelName,
                         boolean bump)

addBackLogEntry

public void addBackLogEntry(java.lang.String channelName,
                            java.lang.String entry)

getBackLogEntries

public java.util.List<Pair<java.lang.String,java.lang.Long>> getBackLogEntries(java.lang.String channelName,
                                                                               int newestToSkip,
                                                                               int numToReturn)

trimBackLogEntries

public void trimBackLogEntries(java.lang.String[] channels,
                               int maxMessages,
                               long oldestTime)