Codota Logo
Disposable.dispose
Code IndexAdd Codota to your IDE (free)

How to use
dispose
method
in
org.jetlang.core.Disposable

Best Java code snippets using org.jetlang.core.Disposable.dispose (Showing top 20 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
DateTime d =
  • Codota Iconnew DateTime()
  • Codota IconDateTimeFormatter formatter;String text;formatter.parseDateTime(text)
  • Codota IconObject instant;new DateTime(instant)
  • Smart code suggestions by Codota
}
origin: menacher/java-game-server

private synchronized void removeDisposableForHandler(EventHandler eventHandler)
{
  Disposable disposable = disposableHandlerMap.get(eventHandler);
  if (null != disposable)
  {
    disposable.dispose();
    disposableHandlerMap.remove(eventHandler);
  }
}
origin: menacher/java-game-server

@Override
public synchronized void clear()
{
  LOG.trace("Going to clear handlers on dispatcher {}", this);
  if(null != handlersByEventType)
  {
    handlersByEventType.clear();
  }
  if(null != anyHandler)
  {
    anyHandler.clear();
  }
  // Iterate through the list of disposables and dispose each one.
  Collection<Disposable> disposables = disposableHandlerMap.values();
  for (Disposable disposable : disposables)
  {
    disposable.dispose();
  }
  disposableHandlerMap.clear();
}

origin: menacher/java-game-server

@Override
public synchronized void close()
{
  if (!isCloseCalled)
  {
    fiber.dispose();
    eventQueue.clearSubscribers();
    // Iterate through the list of disposables and dispose each one.
    Collection<Disposable> disposables = disposableHandlerMap.values();
    for (Disposable disposable : disposables)
    {
      disposable.dispose();
    }
    handlersByEventType.clear();
    handlersByEventType = null;
    anyHandler.clear();
    anyHandler = null;
    isCloseCalled = true;
  }
}
origin: org.jetlang/jetlang

  public void dispose() {
    sub.dispose();
    end.dispose();
  }
};
origin: org.jetlang/jetlang

public void dispose() {
  synchronized (lock) {
    if (d != null) {
      d.dispose();
    }
  }
}
origin: jetlang/core

  public void dispose() {
    for (Disposable disposable : all) {
      disposable.dispose();
    }
  }
};
origin: jetlang/core

public void dispose() {
  synchronized (lock) {
    if (d != null) {
      d.dispose();
    }
  }
}
origin: org.jetlang/jetlang

  public void dispose() {
    requestDispose.dispose();
    timer.dispose();
  }
};
origin: jetlang/core

  public void dispose() {
    sub.dispose();
    end.dispose();
  }
};
origin: jetlang/core

  public void dispose() {
    requestDispose.dispose();
    timer.dispose();
  }
};
origin: jetlang/core

  public void dispose() {
    for (Disposable disposable : all) {
      disposable.dispose();
    }
  }
};
origin: jetlang/core

  public void dispose() {
    _running = false;
    for (Disposable run : new ArrayList<>(_onStop)) {
      run.dispose();
    }
  }
}
origin: org.jetlang/jetlang

  public void dispose() {
    command.dispose();
    future.cancel(false);
  }
}
origin: jetlang/core

  public void dispose() {
    command.dispose();
    future.cancel(false);
  }
}
origin: jetlang/core

public void dispose() {
  if (cancelled.compareAndSet(false, true)) {
    scheduledEvent.dispose();
  }
}
origin: org.jetlang/jetlang

public void dispose() {
  _queue.setRunning(false);
  _started.set(ExecutionState.Stopped);
  synchronized (_disposables) {
    //copy list to prevent concurrent mod
    for (Disposable r : _disposables.toArray(new Disposable[_disposables.size()])) {
      r.dispose();
    }
  }
}
origin: org.jetlang/jetlang

  public void dispose() {
    stopper.dispose();
    remove(this);
  }
};
origin: mgodave/barge

public void destroy(RaftStateContext ctx) {
 heartbeatTask.dispose();
 for (ReplicaManager mgr : managers.values()) {
  mgr.shutdown();
 }
}
origin: jetlang/core

  public void dispose() {
    stopper.dispose();
    remove(this);
  }
};
origin: mgodave/barge

void resetTimeout(@Nonnull final RaftStateContext ctx) {
 if (null != heartbeatTask) {
  heartbeatTask.dispose();
 }
 heartbeatTask = scheduler.scheduleAtFixedRate(() -> {
  LOGGER.debug("Sending heartbeat");
  sendRequests(ctx);
 }, timeout, timeout, MILLISECONDS);
}
org.jetlang.coreDisposabledispose

Javadoc

Dispose this instance. It should be considered unusable after calling this method

Popular methods of Disposable

    Popular in Java

    • Making http post requests using okhttp
    • compareTo (BigDecimal)
    • putExtra (Intent)
    • getOriginalFilename (MultipartFile)
      Return the original filename in the client's filesystem.This may contain path information depending
    • FileWriter (java.io)
      Convenience class for writing character files. The constructors of this class assume that the defaul
    • HttpURLConnection (java.net)
      An URLConnection for HTTP (RFC 2616 [http://tools.ietf.org/html/rfc2616]) used to send and receive d
    • ResourceBundle (java.util)
      Resource bundles contain locale-specific objects. When your program needs a locale-specific resource
    • Manifest (java.util.jar)
      The Manifest class is used to obtain attribute information for a JarFile and its entries.
    • JFrame (javax.swing)
    • Table (org.hibernate.mapping)
      A relational table
    Codota Logo
    • Products

      Search for Java codeSearch for JavaScript codeEnterprise
    • IDE Plugins

      IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
    • Company

      About UsContact UsCareers
    • Resources

      FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
    Get Codota for your IDE now