Skip to content
Permalink
Browse files
HBASE-26990 Add default implementation for BufferedMutator interface …
…setters (#4387)

Signed-off-by: Josh Elser <elserj@apache.org>
  • Loading branch information
bbeaudreault committed May 3, 2022
1 parent 386869a commit 64a6ba364710418d1ace5b143457ed87c104e939
Showing 1 changed file with 12 additions and 3 deletions.
@@ -177,23 +177,32 @@ default long getWriteBufferPeriodicFlushTimerTickMs() {
* The default value comes from the configuration parameter {@code hbase.client.write.buffer}.
* @return The size of the write buffer in bytes.
*/
long getWriteBufferSize();
default long getWriteBufferSize() {
throw new UnsupportedOperationException(
"The BufferedMutator::getWriteBufferSize has not been implemented");
}

/**
* Set rpc timeout for this mutator instance
* @deprecated Since 3.0.0, will be removed in 4.0.0. Please set this through the
* {@link BufferedMutatorParams}.
*/
@Deprecated
void setRpcTimeout(int timeout);
default void setRpcTimeout(int timeout) {
throw new UnsupportedOperationException(
"The BufferedMutator::setRpcTimeout has not been implemented");
}

/**
* Set operation timeout for this mutator instance
* @deprecated Since 3.0.0, will be removed in 4.0.0. Please set this through the
* {@link BufferedMutatorParams}.
*/
@Deprecated
void setOperationTimeout(int timeout);
default void setOperationTimeout(int timeout) {
throw new UnsupportedOperationException(
"The BufferedMutator::setOperationTimeout has not been implemented");
}

/**
* Listens for asynchronous exceptions on a {@link BufferedMutator}.

0 comments on commit 64a6ba3

Please sign in to comment.