Tabnine Logo
FileChangeObserver.destroy
Code IndexAdd Tabnine to your IDE (free)

How to use
destroy
method
in
leap.lang.io.FileChangeObserver

Best Java code snippets using leap.lang.io.FileChangeObserver.destroy (Showing top 1 results out of 315)

origin: org.leapframework/leap-lang

/**
 * Stop monitoring.
 *
 * @param stopInterval the amount of time in milliseconds to wait for the thread to finish.
 * A value of zero will wait until the thread is finished (see {@link Thread#join(long)}).
 * @throws Exception if an error occurs initializing the observer
 * @since 2.1
 */
public synchronized void stop(long stopInterval) throws Exception {
  if (running == false) {
    throw new IllegalStateException("Monitor is not running");
  }
  running = false;
  try {
    thread.join(stopInterval);
  } catch (InterruptedException e) {
    Thread.currentThread().interrupt();
  }
  for (FileChangeObserver observer : observers) {
    observer.destroy();
  }
}
leap.lang.ioFileChangeObserverdestroy

Javadoc

Final processing.

Popular methods of FileChangeObserver

  • <init>
    Construct an observer for the specified directory, file filter and file comparator.
  • addListener
    Add a file system listener.
  • checkAndNotify
    Compare two file lists for files which have been created, modified or deleted.
  • createFileEntry
    Create a new file entry for the specified file.
  • doCreate
    Fire directory/file created events to the registered listeners.
  • doDelete
    Fire directory/file delete events to the registered listeners.
  • doMatch
    Fire directory/file change events to the registered listeners.
  • getDirectory
    Return the directory being observed.
  • initialize
    Initialize the observer.
  • listFiles
    List the contents of a directory

Popular in Java

  • Start an intent from android
  • setScale (BigDecimal)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • getResourceAsStream (ClassLoader)
  • OutputStream (java.io)
    A writable sink for bytes.Most clients will use output streams that write data to the file system (
  • SocketTimeoutException (java.net)
    This exception is thrown when a timeout expired on a socket read or accept operation.
  • SortedMap (java.util)
    A map that has its keys ordered. The sorting is according to either the natural ordering of its keys
  • Vector (java.util)
    Vector is an implementation of List, backed by an array and synchronized. All optional operations in
  • ZipFile (java.util.zip)
    This class provides random read access to a zip file. You pay more to read the zip file's central di
  • Filter (javax.servlet)
    A filter is an object that performs filtering tasks on either the request to a resource (a servlet o
  • 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