congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
ThrottlingException.throwNumRequestsExceeded
Code IndexAdd Tabnine to your IDE (free)

How to use
throwNumRequestsExceeded
method
in
org.apache.hadoop.hbase.quotas.ThrottlingException

Best Java code snippets using org.apache.hadoop.hbase.quotas.ThrottlingException.throwNumRequestsExceeded (Showing top 1 results out of 315)

origin: harbby/presto-connectors

@Override
public void checkQuota(long writeSize, long readSize) throws ThrottlingException {
 if (!reqsLimiter.canExecute()) {
  ThrottlingException.throwNumRequestsExceeded(reqsLimiter.waitInterval());
 }
 if (!reqSizeLimiter.canExecute(writeSize + readSize)) {
  ThrottlingException.throwRequestSizeExceeded(reqSizeLimiter
    .waitInterval(writeSize + readSize));
 }
 if (writeSize > 0) {
  if (!writeReqsLimiter.canExecute()) {
   ThrottlingException.throwNumWriteRequestsExceeded(writeReqsLimiter.waitInterval());
  }
  if (!writeSizeLimiter.canExecute(writeSize)) {
   ThrottlingException.throwWriteSizeExceeded(writeSizeLimiter.waitInterval(writeSize));
  }
 }
 if (readSize > 0) {
  if (!readReqsLimiter.canExecute()) {
   ThrottlingException.throwNumReadRequestsExceeded(readReqsLimiter.waitInterval());
  }
  if (!readSizeLimiter.canExecute(readSize)) {
   ThrottlingException.throwReadSizeExceeded(readSizeLimiter.waitInterval(readSize));
  }
 }
}
org.apache.hadoop.hbase.quotasThrottlingExceptionthrowNumRequestsExceeded

Popular methods of ThrottlingException

  • <init>
  • formatTime
  • throwThrottlingException
  • timeFromString
  • getMessage
  • throwNumReadRequestsExceeded
  • throwNumWriteRequestsExceeded
  • throwReadSizeExceeded
  • throwRequestSizeExceeded
  • throwWriteSizeExceeded

Popular in Java

  • Making http post requests using okhttp
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • notifyDataSetChanged (ArrayAdapter)
  • getExternalFilesDir (Context)
  • ByteBuffer (java.nio)
    A buffer for bytes. A byte buffer can be created in either one of the following ways: * #allocate
  • List (java.util)
    An ordered collection (also known as a sequence). The user of this interface has precise control ove
  • Executor (java.util.concurrent)
    An object that executes submitted Runnable tasks. This interface provides a way of decoupling task s
  • Semaphore (java.util.concurrent)
    A counting semaphore. Conceptually, a semaphore maintains a set of permits. Each #acquire blocks if
  • JTable (javax.swing)
  • DateTimeFormat (org.joda.time.format)
    Factory that creates instances of DateTimeFormatter from patterns and styles. Datetime formatting i
  • Top Sublime Text plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now