com.hazelcast.map
public abstract class AbstractEntryProcessor<K,V> extends Object implements EntryProcessor<K,V>
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.EntryProcessor
,
EntryBackupProcessor
,
Serialized FormConstructor and Description |
---|
AbstractEntryProcessor()
Creates an AbstractEntryProcessor that applies the
EntryProcessor.process(java.util.Map.Entry) to primary and backups. |
AbstractEntryProcessor(boolean applyOnBackup)
Creates an AbstractEntryProcessor.
|
Modifier and Type | Method and Description |
---|---|
EntryBackupProcessor<K,V> |
getBackupProcessor()
Get the entry processor to be applied to backup entries.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
process
public AbstractEntryProcessor()
EntryProcessor.process(java.util.Map.Entry)
to primary and backups.public AbstractEntryProcessor(boolean applyOnBackup)
applyOnBackup
- true if the EntryProcessor.process(java.util.Map.Entry)
should also be applied on the backup.public final EntryBackupProcessor<K,V> getBackupProcessor()
EntryProcessor
getBackupProcessor
in interface EntryProcessor<K,V>
Copyright © 2015 Hazelcast, Inc.. All Rights Reserved.