Package org.infinispan.xsite
Class ClusteredCacheBackupReceiver
- java.lang.Object
-
- org.infinispan.xsite.BaseBackupReceiver
-
- org.infinispan.xsite.ClusteredCacheBackupReceiver
-
- All Implemented Interfaces:
BackupReceiver
public class ClusteredCacheBackupReceiver extends BaseBackupReceiver
BackupReceiver
implementation for clustered caches.- Since:
- 7.1
- Author:
- Pedro Ruivo
-
-
Field Summary
-
Fields inherited from class org.infinispan.xsite.BaseBackupReceiver
cache, cacheName, timeService
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CompletionStage<Void>
handleStateTransferControl(XSiteStateTransferControlCommand command)
It handles the state transfer control from a remote site.CompletionStage<Void>
handleStateTransferState(XSiteStatePushCommand cmd)
It handles the state transfer state from a remote site.-
Methods inherited from class org.infinispan.xsite.BaseBackupReceiver
getCache, handleRemoteCommand
-
-
-
-
Method Detail
-
handleStateTransferControl
public CompletionStage<Void> handleStateTransferControl(XSiteStateTransferControlCommand command)
Description copied from interface:BackupReceiver
It handles the state transfer control from a remote site. The control command must be broadcast to the entire cluster in which the cache exists.
-
handleStateTransferState
public CompletionStage<Void> handleStateTransferState(XSiteStatePushCommand cmd)
Description copied from interface:BackupReceiver
It handles the state transfer state from a remote site. It is possible to have a single node applying the state or forward the state to respective primary owners.
-
-