Package krati.retention

Examples of krati.retention.EventBatchCursor


    @Override
    public Collection<EventBatchCursor> apply(ConcurrentLinkedQueue<EventBatchCursor> queue) {
        ArrayList<EventBatchCursor> results = new ArrayList<EventBatchCursor>();
       
        while(queue.size() > 0) {
            EventBatchCursor c = queue.peek();
            if(c != null) {
                long diff = System.currentTimeMillis() - c.getHeader().getCompletionTime();
                if(diff > _timeMillis) {
                    c = queue.poll();
                    results.add(c);
                } else {
                    break;
View Full Code Here


    @Override
    public synchronized Collection<EventBatchCursor> apply(ConcurrentLinkedQueue<EventBatchCursor> queue) {
        ArrayList<EventBatchCursor> results = new ArrayList<EventBatchCursor>();
       
        while(queue.size() > getNumRetentionBatches()) {
            EventBatchCursor c = queue.poll();
            if(c != null) {
                results.add(c);
            }
        }
       
View Full Code Here

TOP

Related Classes of krati.retention.EventBatchCursor

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.