Tabnine Logo
DefaultShutdownHook
Code IndexAdd Tabnine to your IDE (free)

How to use
DefaultShutdownHook
in
ch.qos.logback.core.hook

Best Java code snippets using ch.qos.logback.core.hook.DefaultShutdownHook (Showing top 2 results out of 315)

origin: tony19/logback-android

  public void run() {
    if (delay.getMilliseconds() > 0) {
      addInfo("Sleeping for " + delay);
      try {
        Thread.sleep(delay.getMilliseconds());
      } catch (InterruptedException e) {
      }
    }
    super.stop();
  }
}
origin: tony19/logback-android

@Before
@Override
public void setUp() throws ParseException {
  super.setUp();
  StatusListenerConfigHelper.addOnConsoleListenerInstance(context, new OnConsoleStatusListener());
  delayingShutdownHook.setContext(context);
  initRFA(rfa);
}
ch.qos.logback.core.hookDefaultShutdownHook

Javadoc

ShutdownHook implementation that stops the Logback context after a specified delay. The default delay is 0 ms (zero).

Most used methods

  • addInfo
  • setContext

Popular in Java

  • Parsing JSON documents to java classes using gson
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • putExtra (Intent)
  • notifyDataSetChanged (ArrayAdapter)
  • URI (java.net)
    A Uniform Resource Identifier that identifies an abstract or physical resource, as specified by RFC
  • GregorianCalendar (java.util)
    GregorianCalendar is a concrete subclass of Calendarand provides the standard calendar used by most
  • HashSet (java.util)
    HashSet is an implementation of a Set. All optional operations (adding and removing) are supported.
  • LinkedHashMap (java.util)
    LinkedHashMap is an implementation of Map that guarantees iteration order. All optional operations a
  • TimeUnit (java.util.concurrent)
    A TimeUnit represents time durations at a given unit of granularity and provides utility methods to
  • Servlet (javax.servlet)
    Defines methods that all servlets must implement. A servlet is a small Java program that runs within
  • Top 17 Plugins for Android Studio
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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