Ejemplo n.º 1
0
 private void endThread() {
   if (softRefReleaseThread != null) {
     softRefReleaseThread.requestEnd = true;
     softRefReleaseThread.interrupt();
     softRefReleaseThread = null;
   }
 }
Ejemplo n.º 2
0
  private void startThread() {
    if (softRefReleaseThread != null) {
      throw new IllegalStateException(
          Messages.getString("vfs.impl/SoftRefReleaseThread-already-running.warn"));
    }

    softRefReleaseThread = new SoftRefReleaseThread();
    softRefReleaseThread.start();
  }