@@ -0,0 +1,1363 @@
+import com.order.databean.TimeCacheStructures.RealTimeCacheList;%0A%0Aimport java.util.LinkedList;%0A%0A/**%0A * Created by LiMingji on 2015/5/21.%0A */%0Apublic class TestRealTimeCacheList %7B%0A    public static RealTimeCacheList%3CString%3E timeCacheList = null;%0A    public static Thread thread = null;%0A    public static void main(String%5B%5D args) throws InterruptedException %7B%0A%0A%0A        timeCacheList = new RealTimeCacheList%3CString%3E(5 ,new RealTimeCacheList.TimeOutCallback%3CString%3E() %7B%0A            @Override%0A            public void expire(String value, LinkedList%3CLong%3E pvTimes) %7B%0A                System.out.println(%22%E8%BF%87%E6%9C%9F%E7%9A%84%E6%95%B0%E6%8D%AE:%22 + value );%0A            %7D%0A        %7D);%0A        thread = new Thread(new Runnable() %7B%0A            @Override%0A            public void run() %7B%0A                int count = 1;%0A                while (true) %7B%0A                    try %7B%0A                        timeCacheList.put(%22This is ===%3E %22 + count %25 4);%0A                        System.out.println(%22%E6%8F%92%E5%85%A5%E7%9A%84%E6%95%B0%E6%8D%AE%22 + count + %22==%3E%22 + %22test currentSize %22 + timeCacheList.size());%0A                        thread.sleep(1000);%0A                        count += 1;%0A                    %7D catch (InterruptedException e) %7B%0A                        e.printStackTrace();%0A                    %7D%0A                %7D%0A            %7D%0A        %7D);%0A        thread.start();%0A        System.out.println(%22%E7%BA%BF%E7%A8%8B%E5%90%AF%E5%8A%A8%22);%0A        Thread.sleep(1000000000);%0A    %7D%0A%7D%0A

test realTimeCacheList