View Javadoc

1   /**
2    * Logback: the generic, reliable, fast and flexible logging framework.
3    * 
4    * Copyright (C) 2000-2008, QOS.ch
5    * 
6    * This library is free software, you can redistribute it and/or modify it under
7    * the terms of the GNU Lesser General Public License as published by the Free
8    * Software Foundation.
9    */
10  package ch.qos.logback.core.sift;
11  
12  import java.util.List;
13  
14  import ch.qos.logback.core.Appender;
15  
16  public interface AppenderTracker<E> {
17  
18    static int MILLIS_IN_ONE_SECOND = 1000;
19    static int THRESHOLD = 30 * 60 * MILLIS_IN_ONE_SECOND; // 30 minutes
20  
21    void put(String key, Appender<E> value, long timestamp);
22    Appender<E> get(String key, long timestamp);
23    void stopStaleAppenders(long timestamp);
24    List<String> keyList();
25    List<Appender<E>> valueList();
26  
27  
28  }