RpcThrottlingException
since hbase-2.0.0.@Deprecated @InterfaceAudience.Public public class ThrottlingException extends QuotaExceededException
Modifier and Type | Class and Description |
---|---|
static class |
ThrottlingException.Type
Deprecated.
|
Modifier and Type | Field and Description |
---|---|
private static String[] |
MSG_TYPE
Deprecated.
|
private static String |
MSG_WAIT
Deprecated.
|
private static long |
serialVersionUID
Deprecated.
|
private ThrottlingException.Type |
type
Deprecated.
|
private long |
waitInterval
Deprecated.
|
Constructor and Description |
---|
ThrottlingException(String msg)
Deprecated.
|
ThrottlingException(ThrottlingException.Type type,
long waitInterval,
String msg)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static String |
formatTime(long timeDiff)
Deprecated.
|
ThrottlingException.Type |
getType()
Deprecated.
|
long |
getWaitInterval()
Deprecated.
|
static void |
throwNumReadRequestsExceeded(long waitInterval)
Deprecated.
|
static void |
throwNumRequestsExceeded(long waitInterval)
Deprecated.
|
static void |
throwNumWriteRequestsExceeded(long waitInterval)
Deprecated.
|
static void |
throwReadSizeExceeded(long waitInterval)
Deprecated.
|
static void |
throwRequestSizeExceeded(long waitInterval)
Deprecated.
|
private static void |
throwThrottlingException(ThrottlingException.Type type,
long waitInterval)
Deprecated.
|
static void |
throwWriteSizeExceeded(long waitInterval)
Deprecated.
|
private static long |
timeFromString(String timeDiff)
Deprecated.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
private static final long serialVersionUID
private static final String MSG_WAIT
private long waitInterval
private ThrottlingException.Type type
public ThrottlingException(String msg)
public ThrottlingException(ThrottlingException.Type type, long waitInterval, String msg)
public ThrottlingException.Type getType()
public long getWaitInterval()
public static void throwNumRequestsExceeded(long waitInterval) throws ThrottlingException
ThrottlingException
public static void throwRequestSizeExceeded(long waitInterval) throws ThrottlingException
ThrottlingException
public static void throwNumReadRequestsExceeded(long waitInterval) throws ThrottlingException
ThrottlingException
public static void throwNumWriteRequestsExceeded(long waitInterval) throws ThrottlingException
ThrottlingException
public static void throwWriteSizeExceeded(long waitInterval) throws ThrottlingException
ThrottlingException
public static void throwReadSizeExceeded(long waitInterval) throws ThrottlingException
ThrottlingException
private static void throwThrottlingException(ThrottlingException.Type type, long waitInterval) throws ThrottlingException
ThrottlingException
public static String formatTime(long timeDiff)
private static long timeFromString(String timeDiff)
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.