public class OutboundTransferTask extends Object
Constructor and Description |
---|
OutboundTransferTask(Address destination,
IntSet segments,
int segmentCount,
int chunkSize,
int topologyId,
KeyPartitioner keyPartitioner,
Consumer<Collection<StateChunk>> onChunkReplicated,
RpcManager rpcManager,
CommandsFactory commandsFactory,
long timeout,
String cacheName,
boolean applyState,
boolean pushTransfer) |
Modifier and Type | Method and Description |
---|---|
void |
cancel()
Cancel the whole task.
|
CompletionStage<Void> |
execute(io.reactivex.rxjava3.core.Flowable<InternalCacheEntry<Object,Object>> entries)
Starts sending entries from the data container and the first loader with fetch persistent data enabled
to the target node.
|
Address |
getDestination() |
IntSet |
getSegments() |
int |
getTopologyId() |
boolean |
isCancelled() |
String |
toString() |
public OutboundTransferTask(Address destination, IntSet segments, int segmentCount, int chunkSize, int topologyId, KeyPartitioner keyPartitioner, Consumer<Collection<StateChunk>> onChunkReplicated, RpcManager rpcManager, CommandsFactory commandsFactory, long timeout, String cacheName, boolean applyState, boolean pushTransfer)
public Address getDestination()
public IntSet getSegments()
public int getTopologyId()
public CompletionStage<Void> execute(io.reactivex.rxjava3.core.Flowable<InternalCacheEntry<Object,Object>> entries)
entries
- a Flowable
with all the entries that need to be sentpublic void cancel()
public boolean isCancelled()
Copyright © 2021 JBoss by Red Hat. All rights reserved.