@InterfaceAudience.Public public interface TableBuilder
Table
instance.
The implementation should have default configurations set before returning the builder to user. So users are free to only set the configurations they care about to create a new Table instance.
Modifier and Type | Method and Description |
---|---|
Table |
build()
Create the
Table instance. |
TableBuilder |
setOperationTimeout(int timeout)
Set timeout for a whole operation such as get, put or delete.
|
TableBuilder |
setReadRpcTimeout(int timeout)
Set timeout for each read(get, scan) rpc request.
|
TableBuilder |
setRpcTimeout(int timeout)
Set timeout for each rpc request.
|
TableBuilder |
setWriteRpcTimeout(int timeout)
Set timeout for each write(put, delete) rpc request.
|
TableBuilder setOperationTimeout(int timeout)
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.
TableBuilder setRpcTimeout(int timeout)
Notice that this will NOT change the rpc timeout for read(get, scan) request and write request(put, delete).
TableBuilder setReadRpcTimeout(int timeout)
TableBuilder setWriteRpcTimeout(int timeout)
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.