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

  • Finding current android device location
  • findViewById (Activity)
  • getSharedPreferences (Context)
  • getSystemService (Context)
  • VirtualMachine (com.sun.tools.attach)
    A Java virtual machine. A VirtualMachine represents a Java virtual machine to which this Java vir
  • File (java.io)
    An "abstract" representation of a file system entity identified by a pathname. The pathname may be a
  • Format (java.text)
    The base class for all formats. This is an abstract base class which specifies the protocol for clas
  • Locale (java.util)
    Locale represents a language/country/variant combination. Locales are used to alter the presentatio
  • BlockingQueue (java.util.concurrent)
    A java.util.Queue that additionally supports operations that wait for the queue to become non-empty
  • StringUtils (org.apache.commons.lang)
    Operations on java.lang.String that arenull safe. * IsEmpty/IsBlank - checks if a String contains
  • Top plugins for WebStorm
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