Package org.apache.hadoop.hbase.client
Class AsyncRequestFutureImpl.ReplicaCallIssuingRunnable
java.lang.Object
org.apache.hadoop.hbase.client.AsyncRequestFutureImpl.ReplicaCallIssuingRunnable
- All Implemented Interfaces:
- Runnable
- Enclosing class:
- AsyncRequestFutureImpl<CResult>
private final class AsyncRequestFutureImpl.ReplicaCallIssuingRunnable
extends Object
implements Runnable
Runnable (that can be submitted to thread pool) that waits for when it's time to issue replica
 calls, finds region replicas, groups the requests by replica and issues the calls (on separate
 threads, via sendMultiAction). This is done on a separate thread because we don't want to wait
 on user thread for our asynchronous call, and usually we have to wait before making replica
 calls.
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate final long
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprivate voidaddReplicaActions(int index, Map<ServerName, MultiAction> actionsByServer, List<Action> unknownReplicaActions) Add replica actions to action map by server.private voidaddReplicaActionsAgain(Action action, Map<ServerName, MultiAction> actionsByServer) voidrun()
- 
Field Details- 
startTime
- 
initialActions
 
- 
- 
Constructor Details- 
ReplicaCallIssuingRunnable
 
- 
- 
Method Details- 
run
- 
addReplicaActionsprivate void addReplicaActions(int index, Map<ServerName, MultiAction> actionsByServer, List<Action> unknownReplicaActions) Add replica actions to action map by server.- Parameters:
- index- Index of the original action.
- actionsByServer- The map by server to add it to.
 
- 
addReplicaActionsAgain
 
-