Tabnine Logo
Deadline.setCurrentDeadline
Code IndexAdd Tabnine to your IDE (free)

How to use
setCurrentDeadline
method
in
org.apache.hadoop.hive.metastore.Deadline

Best Java code snippets using org.apache.hadoop.hive.metastore.Deadline.setCurrentDeadline (Showing top 4 results out of 315)

origin: apache/hive

/**
 * register a Deadline threadlocal object to current thread.
 * @param timeout
 */
public static void registerIfNot(long timeout) {
 if (getCurrentDeadline() == null) {
  setCurrentDeadline(new Deadline(timeout));
 }
}
origin: com.facebook.presto.hive/hive-apache

/**
 * register a Deadline threadlocal object to current thread.
 * @param timeout
 */
public static void registerIfNot(long timeout) {
 if (getCurrentDeadline() == null) {
  setCurrentDeadline(new Deadline(timeout));
 }
}
origin: org.apache.hive/hive-standalone-metastore

/**
 * register a Deadline threadlocal object to current thread.
 * @param timeout
 */
public static void registerIfNot(long timeout) {
 if (getCurrentDeadline() == null) {
  setCurrentDeadline(new Deadline(timeout));
 }
}
origin: org.spark-project.hive/hive-metastore

/**
 * register a Deadline threadlocal object to current thread.
 * @param timeout
 */
public static void registerIfNot(long timeout) {
 if (getCurrentDeadline() == null) {
  setCurrentDeadline(new Deadline(timeout));
 }
}
org.apache.hadoop.hive.metastoreDeadlinesetCurrentDeadline

Popular methods of Deadline

  • registerIfNot
    register a Deadline threadlocal object to current thread.
  • startTimer
    start the timer before a method is invoked.
  • stopTimer
    end the time after a method is done.
  • checkTimeout
    Check whether the long running method timeout.
  • getCurrentDeadline
  • resetTimeout
    reset the timeout value of this timer.
  • <init>
  • check
  • clear
    remove the registered Deadline threadlocal object from current thread.
  • removeCurrentDeadline
  • isStarted
    Check whether the timer is started.
  • newMetaException
    convert DeadlineException to MetaException
  • isStarted,
  • newMetaException

Popular in Java

  • Reading from database using SQL prepared statement
  • notifyDataSetChanged (ArrayAdapter)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • setRequestProperty (URLConnection)
  • Pointer (com.sun.jna)
    An abstraction for a native pointer data type. A Pointer instance represents, on the Java side, a na
  • EOFException (java.io)
    Thrown when a program encounters the end of a file or stream during an input operation.
  • ArrayList (java.util)
    ArrayList is an implementation of List, backed by an array. All optional operations including adding
  • Pattern (java.util.regex)
    Patterns are compiled regular expressions. In many cases, convenience methods such as String#matches
  • Collectors (java.util.stream)
  • XPath (javax.xml.xpath)
    XPath provides access to the XPath evaluation environment and expressions. Evaluation of XPath Expr
  • Github Copilot alternatives
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