use of org.infinispan.commands.functional.ReadWriteManyCommand 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;
}
use of org.infinispan.commands.functional.ReadWriteManyCommand in project infinispan by infinispan.
the class ReadWriteManyHelper method copyForBackup.
@Override
public ReadWriteManyCommand copyForBackup(ReadWriteManyCommand cmd, LocalizedCacheTopology topology, Address target, IntSet segments) {
ReadWriteManyCommand copy = new ReadWriteManyCommand(cmd).withKeys(new ReadOnlySegmentAwareCollection(cmd.getAffectedKeys(), topology, segments));
copy.setForwarded(true);
return copy;
}
Aggregations