HBASE-26103 Deprecate BufferedMutatorParams#pool method (#3635)

Signed-off-by: Anoop Sam John <anoopsamjohn@apache.org>
Signed-off-by: stack <stack@apache.org>
This commit is contained in:
Rushabh Shah 2021-08-30 13:21:32 -04:00 committed by GitHub
parent 889049eab6
commit a0864ed3bc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 0 deletions

View File

@ -144,6 +144,11 @@ public class BufferedMutatorParams implements Cloneable {
return this; return this;
} }
/**
* @deprecated Since 3.0.0-alpha-2, will be removed in 4.0.0. You can not set it anymore.
* BufferedMutator will use Connection's ExecutorService.
*/
@Deprecated
public ExecutorService getPool() { public ExecutorService getPool() {
return pool; return pool;
} }
@ -151,7 +156,10 @@ public class BufferedMutatorParams implements Cloneable {
/** /**
* Override the default executor pool defined by the {@code hbase.htable.threads.*} * Override the default executor pool defined by the {@code hbase.htable.threads.*}
* configuration values. * configuration values.
* @deprecated Since 3.0.0-alpha-2, will be removed in 4.0.0. You can not set it anymore.
* BufferedMutator will use Connection's ExecutorService.
*/ */
@Deprecated
public BufferedMutatorParams pool(ExecutorService pool) { public BufferedMutatorParams pool(ExecutorService pool) {
this.pool = pool; this.pool = pool;
return this; return this;