public class ConditionalWriterConfig extends Object
| Constructor and Description |
|---|
ConditionalWriterConfig() |
| Modifier and Type | Method and Description |
|---|---|
Authorizations |
getAuthorizations() |
Durability |
getDurability() |
int |
getMaxWriteThreads() |
long |
getTimeout(TimeUnit timeUnit) |
ConditionalWriterConfig |
setAuthorizations(Authorizations auths)
A set of authorization labels that will be checked against the column visibility of each key in order to filter data.
|
ConditionalWriterConfig |
setDurability(Durability durability)
Sets the Durability for the mutation, if applied.
|
ConditionalWriterConfig |
setMaxWriteThreads(int maxWriteThreads)
Sets the maximum number of threads to use for writing data to the tablet servers.
|
ConditionalWriterConfig |
setTimeout(long timeout,
TimeUnit timeUnit)
Sets the maximum amount of time an unresponsive server will be re-tried.
|
public ConditionalWriterConfig setAuthorizations(Authorizations auths)
Any condition that is not visible with this set of authorizations will fail.
public ConditionalWriterConfig setTimeout(long timeout, TimeUnit timeUnit)
ConditionalWriter should return the
mutation with an exception.Long.MAX_VALUE with TimeUnit.MILLISECONDS.
TimeUnit.MICROSECONDS or TimeUnit.NANOSECONDS will be truncated to the nearest TimeUnit.MILLISECONDS.
If this truncation would result in making the value zero when it was specified as non-zero, then a minimum value of one TimeUnit.MILLISECONDS will
be used.
Default: Long.MAX_VALUE (no timeout)
timeout - the timeout, in the unit specified by the value of timeUnittimeUnit - determines how timeout will be interpretedthis to allow chaining of set methodsIllegalArgumentException - if timeout is less than 0public ConditionalWriterConfig setMaxWriteThreads(int maxWriteThreads)
Default: 3
maxWriteThreads - the maximum threads to usethis to allow chaining of set methodsIllegalArgumentException - if maxWriteThreads is non-positivepublic ConditionalWriterConfig setDurability(Durability durability)
Default: Durability.DEFAULT: use the table's durability configuration.
this to allow chaining of set methodspublic Authorizations getAuthorizations()
public long getTimeout(TimeUnit timeUnit)
public int getMaxWriteThreads()
public Durability getDurability()
Copyright © 2011–2018 The Apache Software Foundation. All rights reserved.