@@ -0,0 +1,1895 @@
+/*%0A * Copyright 2010 Google Inc. All Rights Reserved.%0A *%0A * Licensed under the Apache License, Version 2.0 (the %22License%22);%0A * you may not use this file except in compliance with the License.%0A * You may obtain a copy of the License at%0A *%0A *     http://www.apache.org/licenses/LICENSE-2.0%0A *%0A * Unless required by applicable law or agreed to in writing, software%0A * distributed under the License is distributed on an %22AS IS%22 BASIS,%0A * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.%0A * See the License for the specific language governing permissions and%0A * limitations under the License.%0A */%0Apackage com.googlecode.concurrentlinkedhashmap;%0A%0Aimport javax.annotation.concurrent.ThreadSafe;%0A%0A/**%0A * A listener registered for notification when an entry is evicted. An instance%0A * may be called concurrently by multiple threads to process entries. An%0A * implementation should avoid performing blocking calls or synchronizing on%0A * shared resources.%0A * %3Cp%3E%0A * The listener is invoked by %7B@link ConcurrentLinkedHashMap%7D on a caller's%0A * thread and will not block other threads from operating on the map. An%0A * implementation should be aware that the caller's thread will not expect%0A * long execution times or failures as a side effect of the listener being%0A * notified. Execution safety and a fast turn around time can be achieved by%0A * performing the operation asynchronously, such as by submitting a task to an%0A * %7B@link java.util.concurrent.ExecutorService%7D.%0A *%0A * @author ben.manes@gmail.com (Ben Manes)%0A * @see %3Ca href=%22http://code.google.com/p/concurrentlinkedhashmap/%22%3E%0A *      http://code.google.com/p/concurrentlinkedhashmap/%3C/a%3E%0A */%0A@ThreadSafe%0Apublic interface EvictionListener%3CK, V%3E %7B%0A%0A  /**%0A   * A call-back notification that the entry was evicted.%0A   *%0A   * @param key the entry's key%0A   * @param value the entry's value%0A   */%0A  void onEviction(K key, V value);%0A%7D%0A

Create EvictionListener.java