com.hazelcast.map
Class AbstractEntryProcessor<K,V>

java.lang.Object
  extended by com.hazelcast.map.AbstractEntryProcessor<K,V>
Type Parameters:
K - Type of key of a Map.Entry
V - Type of value of a Map.Entry
All Implemented Interfaces:
EntryProcessor<K,V>, Serializable
Direct Known Subclasses:
AbstractWebDataEntryProcessor

public abstract class AbstractEntryProcessor<K,V>
extends Object
implements EntryProcessor<K,V>

An abstract EntryProcessor that already has implemented the getBackupProcessor(). In a most cases you want the same logic to be executed on the primary and on the backup. This implementation has this behavior.

See Also:
EntryProcessor, EntryBackupProcessor, Serialized Form

Constructor Summary
AbstractEntryProcessor()
          Creates an AbstractEntryProcessor that applies the EntryProcessor.process(java.util.Map.Entry) to primary and backups.
AbstractEntryProcessor(boolean applyOnBackup)
          Creates an AbstractEntryProcessor.
 
Method Summary
 EntryBackupProcessor<K,V> getBackupProcessor()
          Get the entry processor to be applied to backup entries.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.hazelcast.map.EntryProcessor
process
 

Constructor Detail

AbstractEntryProcessor

public AbstractEntryProcessor()
Creates an AbstractEntryProcessor that applies the EntryProcessor.process(java.util.Map.Entry) to primary and backups.


AbstractEntryProcessor

public AbstractEntryProcessor(boolean applyOnBackup)
Creates an AbstractEntryProcessor.

Parameters:
applyOnBackup - if the EntryProcessor.process(java.util.Map.Entry) should also be applied on the backup.
Method Detail

getBackupProcessor

public final EntryBackupProcessor<K,V> getBackupProcessor()
Description copied from interface: EntryProcessor
Get the entry processor to be applied to backup entries.

Specified by:
getBackupProcessor in interface EntryProcessor<K,V>
Returns:
back up processor


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