Skip to content

Commit

Permalink
HBASE-26990 Add default implementation for BufferedMutator interface …
Browse files Browse the repository at this point in the history
…setters (#4387)

Signed-off-by: Josh Elser <elserj@apache.org>
  • Loading branch information
bbeaudreault authored May 3, 2022
1 parent 386869a commit 64a6ba3
Showing 1 changed file with 12 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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}.
Expand Down

0 comments on commit 64a6ba3

Please sign in to comment.