Tabnine Logo
ZkClient.start
Code IndexAdd Tabnine to your IDE (free)

How to use
start
method
in
me.hao0.antares.common.zk.ZkClient

Best Java code snippets using me.hao0.antares.common.zk.ZkClient.start (Showing top 1 results out of 315)

origin: ihaolin/antares

/**
 * Create a client instance
 * @param hosts host strings: zk01:2181,zk02:2181,zk03:2181
 * @param namespace path root, such as app name
 * @param retryStrategy client retry strategy
 */
public static ZkClient newClient(String hosts, String namespace, ExponentialBackoffRetry retryStrategy){
  ZkClient zc = new ZkClient(hosts, namespace, retryStrategy);
  zc.start();
  return zc;
}
me.hao0.antares.common.zkZkClientstart

Popular methods of ZkClient

  • checkExists
    Check the path exists or not
  • createEphemeral
    Create an ephemeral path
  • gets
    Get the children of the path
  • mkdirs
    Make directories if necessary
  • newChildWatcher
    new a watcher of path child
  • newClient
    Create a client instance
  • update
  • acquireLeader
    Acquire the leadership
  • create
    Create an persistent path
  • deleteIfExists
    Delete the node if the node exists
  • getString
    get the node data as string
  • newLock
    lock the path
  • getString,
  • newLock,
  • newNodeWatcher,
  • shutdown,
  • <init>,
  • client,
  • createEphemeralSequential,
  • createIfNotExists,
  • createSequential,
  • delete

Popular in Java

  • Running tasks concurrently on multiple threads
  • getExternalFilesDir (Context)
  • getContentResolver (Context)
  • setScale (BigDecimal)
  • FileInputStream (java.io)
    An input stream that reads bytes from a file. File file = ...finally if (in != null) in.clos
  • FileWriter (java.io)
    A specialized Writer that writes to a file in the file system. All write requests made by calling me
  • String (java.lang)
  • ServerSocket (java.net)
    This class represents a server-side socket that waits for incoming client connections. A ServerSocke
  • Timestamp (java.sql)
    A Java representation of the SQL TIMESTAMP type. It provides the capability of representing the SQL
  • MessageFormat (java.text)
    Produces concatenated messages in language-neutral way. New code should probably use java.util.Forma
  • 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