@InterfaceAudience.Public @InterfaceStability.Evolving public class ThrottlingException extends QuotaExceededException
限定符和类型 | 类和说明 |
---|---|
static class |
ThrottlingException.Type |
构造器和说明 |
---|
ThrottlingException(String msg) |
ThrottlingException(ThrottlingException.Type type,
long waitInterval,
String msg) |
限定符和类型 | 方法和说明 |
---|---|
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) |
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
public static void throwRequestSizeExceeded(long waitInterval) throws ThrottlingException
public static void throwNumReadRequestsExceeded(long waitInterval) throws ThrottlingException
public static void throwNumWriteRequestsExceeded(long waitInterval) throws ThrottlingException
public static void throwWriteSizeExceeded(long waitInterval) throws ThrottlingException
public static void throwReadSizeExceeded(long waitInterval) throws ThrottlingException
public static String formatTime(long timeDiff)
Copyright © 2007–2021 The Apache Software Foundation. All rights reserved.