use of org.infinispan.distribution.util.ReadOnlySegmentAwareMap in project infinispan by infinispan.
the class PutMapHelper method copyForBackup.
@Override
public PutMapCommand copyForBackup(PutMapCommand cmd, LocalizedCacheTopology topology, Address target, IntSet segments) {
PutMapCommand copy = new PutMapCommand(cmd).withMap(new ReadOnlySegmentAwareMap(cmd.getMap(), topology, segments));
copy.setForwarded(true);
return copy;
}
use of org.infinispan.distribution.util.ReadOnlySegmentAwareMap 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;
}
use of org.infinispan.distribution.util.ReadOnlySegmentAwareMap 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