Tabnine Logo
RaftClient.close
Code IndexAdd Tabnine to your IDE (free)

How to use
close
method
in
io.atomix.protocols.raft.RaftClient

Best Java code snippets using io.atomix.protocols.raft.RaftClient.close (Showing top 4 results out of 315)

origin: atomix/atomix

@Override
public CompletableFuture<Void> stop() {
 return client != null ? client.close() : CompletableFuture.completedFuture(null);
}
origin: apache/zeppelin

public void shutdown() {
 if (!zconf.isClusterMode()) {
  return;
 }
 running.set(false);
 try {
  if (null != raftSessionClient) {
   raftSessionClient.close().get(3, TimeUnit.SECONDS);
  }
  if (null != raftClient) {
   raftClient.close().get(3, TimeUnit.SECONDS);
  }
 } catch (InterruptedException e) {
  LOGGER.error(e.getMessage());
 } catch (ExecutionException e) {
  LOGGER.error(e.getMessage());
 } catch (TimeoutException e) {
  LOGGER.error(e.getMessage());
 }
}
origin: atomix/atomix

clients.forEach(c -> {
 try {
  c.close().get(10, TimeUnit.SECONDS);
 } catch (Exception e) {
origin: atomix/atomix

 c.close().get(10, TimeUnit.SECONDS);
} catch (Exception e) {
io.atomix.protocols.raftRaftClientclose

Javadoc

Closes the client.

Popular methods of RaftClient

  • builder
    Returns a new Raft client builder. The provided set of members will be used to connect to the Raft c
  • connect
    Connects the client to Raft cluster via the provided server addresses. The client will connect to se
  • sessionBuilder
    Builds a Raft proxy session.
  • leader
    Returns the current leader.
  • term
    Returns the current term.

Popular in Java

  • Making http post requests using okhttp
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • onCreateOptionsMenu (Activity)
  • requestLocationUpdates (LocationManager)
  • InputStream (java.io)
    A readable source of bytes.Most clients will use input streams that read data from the file system (
  • Permission (java.security)
    Legacy security code; do not use.
  • SimpleDateFormat (java.text)
    Formats and parses dates in a locale-sensitive manner. Formatting turns a Date into a String, and pa
  • Deque (java.util)
    A linear collection that supports element insertion and removal at both ends. The name deque is shor
  • UUID (java.util)
    UUID is an immutable representation of a 128-bit universally unique identifier (UUID). There are mul
  • StringUtils (org.apache.commons.lang)
    Operations on java.lang.String that arenull safe. * IsEmpty/IsBlank - checks if a String contains
  • Best plugins for Eclipse
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