@InterfaceAudience.Public @InterfaceStability.Evolving public class ThrottlingException extends QuotaExceededException
Modifier and Type | Class and Description |
---|---|
static class |
ThrottlingException.Type |
Constructor and Description |
---|
ThrottlingException(String msg) |
ThrottlingException(ThrottlingException.Type type,
long waitInterval,
String msg) |
Modifier and Type | Method and Description |
---|---|
static String |
formatTime(long timeDiff) |
ThrottlingException.Type |
getType() |
long |
getWaitInterval() |
static void |
throwNumReadRequestsExceeded(long waitInterval) |
static void |
throwNumRequestsExceeded(long waitInterval) |
static void |
throwNumWriteRequestsExceeded(long waitInterval) |
static void |
throwReadSizeExceeded(long waitInterval) |
static void |
throwRequestSizeExceeded(long waitInterval) |
static void |
throwWriteSizeExceeded(long waitInterval) |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
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
public static String formatTime(long timeDiff)
Copyright © 2007–2016 The Apache Software Foundation. All rights reserved.