com.hazelcast.map
Interface EntryBackupProcessor<K,V>
- Type Parameters:
K - Type of key of a Map.EntryV - Type of value of a Map.Entry
- All Superinterfaces:
- Serializable
public interface EntryBackupProcessor<K,V>
- extends Serializable
Processes an entry on a backup partition.
Note that there is a possibility which an EntryProcessor can see
that a key exists but its backup processor EntryBackupProcessor may not find it
at run time due to an unsent backup of a previous operation (e.g. a previous put). In those situations,
Hazelcast internally/eventually will sync those owner and backup partitions so you will not lose any data.
When coding an EntryBackupProcessor, you should take that case into account, otherwise
NullPointerExceptions can be seen since Map.Entry.getValue() may return null.
- See Also:
EntryProcessor,
AbstractEntryProcessor
processBackup
void processBackup(Map.Entry<K,V> entry)
Copyright © 2015 Hazelcast, Inc.. All Rights Reserved.