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