Tabnine Logo
NodeListener
Code IndexAdd Tabnine to your IDE (free)

How to use
NodeListener
in
me.hao0.antares.common.zk

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

origin: ihaolin/antares

  @Override
  public void nodeChanged() throws Exception {
    ChildData data = node.getCurrentData();
    if (data != null){
      listener.onUpdate(data.getData());
    } else {
      listener.onDelete();
    }
  }
});
me.hao0.antares.common.zkNodeListener

Javadoc

Node child listener

Most used methods

  • onDelete
    Callback when the node is deleted
  • onUpdate
    Callback when the node is created, or the node data is updated

Popular in Java

  • Running tasks concurrently on multiple threads
  • getContentResolver (Context)
  • getResourceAsStream (ClassLoader)
  • findViewById (Activity)
  • FileReader (java.io)
    A specialized Reader that reads from a file in the file system. All read requests made by calling me
  • Timestamp (java.sql)
    A Java representation of the SQL TIMESTAMP type. It provides the capability of representing the SQL
  • Format (java.text)
    The base class for all formats. This is an abstract base class which specifies the protocol for clas
  • Dictionary (java.util)
    Note: Do not use this class since it is obsolete. Please use the Map interface for new implementatio
  • Executors (java.util.concurrent)
    Factory and utility methods for Executor, ExecutorService, ScheduledExecutorService, ThreadFactory,
  • Scheduler (org.quartz)
    This is the main interface of a Quartz Scheduler. A Scheduler maintains a registry of org.quartz.Job
  • CodeWhisperer alternatives
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