Interface BackupAwareEntryProcessor<K,V,T>

Type Parameters:
K - the cache key type
V - the cache value type
T - 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 Type
    Method
    Description
    @Nullable javax.cache.processor.EntryProcessor<K,V,T>
    Create the entry processor that should run on backup replicas.

    Methods inherited from interface javax.cache.processor.EntryProcessor

    process
  • Method Details

    • createBackupEntryProcessor

      @Nullable javax.cache.processor.EntryProcessor<K,V,T> createBackupEntryProcessor()
      Create the entry processor that should run on backup replicas.

      The returned processor may be this when 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 null to use normal full-value backup