HBASE-22790 Added deprecation versions for fields in ByteBuffAllocator

Signed-off-by: stack <stack@apache.org>
This commit is contained in:
Jan Hentschel 2019-08-05 08:59:46 +02:00
parent 6e3b5947a0
commit 3971773189
No known key found for this signature in database
GPG Key ID: 5CD818B19CC299A3

View File

@ -78,20 +78,23 @@ public class ByteBuffAllocator {
public static final String MIN_ALLOCATE_SIZE_KEY = "hbase.server.allocator.minimal.allocate.size"; public static final String MIN_ALLOCATE_SIZE_KEY = "hbase.server.allocator.minimal.allocate.size";
/** /**
* @deprecated use {@link ByteBuffAllocator#ALLOCATOR_POOL_ENABLED_KEY} instead. * @deprecated since 2.3.0 and will be removed in 4.0.0. Use
* {@link ByteBuffAllocator#ALLOCATOR_POOL_ENABLED_KEY} instead.
*/ */
@Deprecated @Deprecated
public static final String DEPRECATED_ALLOCATOR_POOL_ENABLED_KEY = public static final String DEPRECATED_ALLOCATOR_POOL_ENABLED_KEY =
"hbase.ipc.server.reservoir.enabled"; "hbase.ipc.server.reservoir.enabled";
/** /**
* @deprecated use {@link ByteBuffAllocator#MAX_BUFFER_COUNT_KEY} instead. * @deprecated since 2.3.0 and will be removed in 4.0.0. Use
* {@link ByteBuffAllocator#MAX_BUFFER_COUNT_KEY} instead.
*/ */
@Deprecated @Deprecated
static final String DEPRECATED_MAX_BUFFER_COUNT_KEY = "hbase.ipc.server.reservoir.initial.max"; static final String DEPRECATED_MAX_BUFFER_COUNT_KEY = "hbase.ipc.server.reservoir.initial.max";
/** /**
* @deprecated use {@link ByteBuffAllocator#BUFFER_SIZE_KEY} instead. * @deprecated since 2.3.0 and will be removed in 4.0.0. Use
* {@link ByteBuffAllocator#BUFFER_SIZE_KEY} instead.
*/ */
@Deprecated @Deprecated
static final String DEPRECATED_BUFFER_SIZE_KEY = "hbase.ipc.server.reservoir.initial.buffer.size"; static final String DEPRECATED_BUFFER_SIZE_KEY = "hbase.ipc.server.reservoir.initial.buffer.size";