com.hazelcast.collection.impl.queue
Class QueueEvictionProcessor

java.lang.Object
  extended by com.hazelcast.collection.impl.queue.QueueEvictionProcessor
All Implemented Interfaces:
ScheduledEntryProcessor<String,Void>

public class QueueEvictionProcessor
extends Object
implements ScheduledEntryProcessor<String,Void>

Eviction Processor for the Queue.


Constructor Summary
QueueEvictionProcessor(NodeEngine nodeEngine, QueueService service)
           
 
Method Summary
 void process(EntryTaskScheduler<String,Void> scheduler, Collection<ScheduledEntry<String,Void>> entries)
          Processes all entries.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QueueEvictionProcessor

public QueueEvictionProcessor(NodeEngine nodeEngine,
                              QueueService service)
Method Detail

process

public void process(EntryTaskScheduler<String,Void> scheduler,
                    Collection<ScheduledEntry<String,Void>> entries)
Description copied from interface: ScheduledEntryProcessor
Processes all entries. Implementation has to handle the failures and can possibly reschedule for a future time. Imagine you are implementing this for dirty records: if mapStore.storeAll throws an exception, you might want to reschedule the failed records.

Specified by:
process in interface ScheduledEntryProcessor<String,Void>
Parameters:
scheduler - the EntryTskScheduler
entries - the entries (key and value) to process


Copyright © 2015 Hazelcast, Inc.. All Rights Reserved.