public interface BackupReceiver
ClusteredCacheBackupReceiver
CompletionStage<Void> handleRemoteCommand(VisitableCommand command, boolean preserveOrder)
CompletionStage<Void> putKeyValue(Object key, Object value, Metadata metadata, IracMetadata iracMetadata)
If a conflict occurs, the update can be discarded.
key
- The key to update.value
- The new value.metadata
- The new Metadata
.iracMetadata
- The IracMetadata
for conflict resolution.CompletionStage
that is completed when the update is apply in the cluster or is discarded.CompletionStage<Void> removeKey(Object key, IracMetadata iracMetadata)
This is a request from the remote site and the removal can be discarded if a conflict happens.
key
- The key to delete.iracMetadata
- The IracMetadata
for conflict resolution.CompletionStage
that is completed when the key is deleted or it is discarded.CompletionStage<Void> clearKeys()
This is not safe and it doesn't perform any conflict resolution.
CompletionStage
that is completed when the cache is cleared.CompletionStage<Void> forwardToPrimary(IracUpdateKeyCommand command)
IracUpdateKeyCommand
to the primary owner.command
- The IracUpdateKeyCommand
to forward.CompletionStage
that is completed when the primary owner completes the request.CompletionStage<Void> handleStartReceivingStateTransfer(XSiteStateTransferStartReceiveCommand command)
CompletionStage<Void> handleEndReceivingStateTransfer(XSiteStateTransferFinishReceiveCommand command)
CompletionStage<Void> handleStateTransferState(XSiteStatePushCommand cmd)
Copyright © 2021 JBoss by Red Hat. All rights reserved.