use of org.infinispan.commands.functional.ReadWriteManyEntriesCommand in project infinispan by infinispan.
the class MultiEntriesFunctionalBackupWriteCommand method createWriteCommand.
@Override
WriteCommand createWriteCommand() {
// noinspection unchecked
AbstractWriteManyCommand cmd = writeOnly ? new WriteOnlyManyEntriesCommand(entries, (BiConsumer) function, params, getCommandInvocationId(), keyDataConversion, valueDataConversion) : new ReadWriteManyEntriesCommand(entries, (BiFunction) function, params, getCommandInvocationId(), keyDataConversion, valueDataConversion);
cmd.setForwarded(true);
return cmd;
}
use of org.infinispan.commands.functional.ReadWriteManyEntriesCommand in project infinispan by infinispan.
the class ReadWriteManyEntriesHelper method copyForBackup.
@Override
public ReadWriteManyEntriesCommand copyForBackup(ReadWriteManyEntriesCommand cmd, LocalizedCacheTopology topology, Address target, IntSet segments) {
ReadWriteManyEntriesCommand copy = new ReadWriteManyEntriesCommand(cmd).withArguments(new ReadOnlySegmentAwareMap(cmd.getArguments(), topology, segments));
copy.setForwarded(true);
return copy;
}
Aggregations