Interface BackupAwareEntryProcessor<K,V,T>
- Type Parameters:
K- the cache key typeV- the cache value typeT- the processor result type
- All Superinterfaces:
javax.cache.processor.EntryProcessor<K,V, T>
public interface BackupAwareEntryProcessor<K,V,T>
extends javax.cache.processor.EntryProcessor<K,V,T>
JCache entry processor extension that can supply a specialized backup processor.
The primary processor still follows the standard JSR-107
EntryProcessor contract. Implementations may return a smaller
backup processor from createBackupEntryProcessor() so backup replicas can apply the
same delta without receiving a full post-update value. Returning null requests the
normal full-value backup path.
-
Method Summary
Modifier and TypeMethodDescriptionCreate the entry processor that should run on backup replicas.Methods inherited from interface javax.cache.processor.EntryProcessor
process
-
Method Details
-
createBackupEntryProcessor
Create the entry processor that should run on backup replicas.The returned processor may be
thiswhen the primary processor is safe to run on backups, or a separate processor when the backup should apply only the data mutation.- Returns:
- the backup entry processor, or
nullto use normal full-value backup
-