@InterfaceAudience.Private abstract class TableBuilderBase extends Object implements TableBuilder
Modifier and Type | Field and Description |
---|---|
protected int |
operationTimeout |
protected int |
readRpcTimeout |
protected int |
rpcTimeout |
protected TableName |
tableName |
protected int |
writeRpcTimeout |
Constructor and Description |
---|
TableBuilderBase(TableName tableName,
ConnectionConfiguration connConf) |
Modifier and Type | Method and Description |
---|---|
TableBuilderBase |
setOperationTimeout(int timeout)
Set timeout for a whole operation such as get, put or delete.
|
TableBuilderBase |
setReadRpcTimeout(int timeout)
Set timeout for each read(get, scan) rpc request.
|
TableBuilderBase |
setRpcTimeout(int timeout)
Set timeout for each rpc request.
|
TableBuilderBase |
setWriteRpcTimeout(int timeout)
Set timeout for each write(put, delete) rpc request.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
build
protected int operationTimeout
protected int rpcTimeout
protected int readRpcTimeout
protected int writeRpcTimeout
TableBuilderBase(TableName tableName, ConnectionConfiguration connConf)
public TableBuilderBase setOperationTimeout(int timeout)
TableBuilder
Operation timeout and max attempt times(or max retry times) are both limitations for retrying, we will stop retrying when we reach any of the limitations.
setOperationTimeout
in interface TableBuilder
public TableBuilderBase setRpcTimeout(int timeout)
TableBuilder
Notice that this will NOT change the rpc timeout for read(get, scan) request and write request(put, delete).
setRpcTimeout
in interface TableBuilder
public TableBuilderBase setReadRpcTimeout(int timeout)
TableBuilder
setReadRpcTimeout
in interface TableBuilder
public TableBuilderBase setWriteRpcTimeout(int timeout)
TableBuilder
setWriteRpcTimeout
in interface TableBuilder
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.