use of org.infinispan.commands.functional.WriteOnlyManyCommand in project infinispan by infinispan.
the class WriteOnlyManyHelper method copyForBackup.
@Override
public WriteOnlyManyCommand copyForBackup(WriteOnlyManyCommand cmd, LocalizedCacheTopology topology, Address target, IntSet segments) {
WriteOnlyManyCommand copy = new WriteOnlyManyCommand(cmd).withKeys(new ReadOnlySegmentAwareCollection(cmd.getAffectedKeys(), topology, segments));
copy.setForwarded(true);
return copy;
}
use of org.infinispan.commands.functional.WriteOnlyManyCommand in project infinispan by infinispan.
the class MultiKeyFunctionalBackupWriteCommand method createWriteCommand.
@Override
WriteCommand createWriteCommand() {
// noinspection unchecked
AbstractWriteManyCommand cmd = writeOnly ? new WriteOnlyManyCommand(keys, (Consumer) function, params, getCommandInvocationId(), keyDataConversion, valueDataConversion) : new ReadWriteManyCommand(keys, (Function) function, params, getCommandInvocationId(), keyDataConversion, valueDataConversion);
cmd.setForwarded(true);
return cmd;
}
Aggregations