curator-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From randg...@apache.org
Subject git commit: Updated for new LeaderSelectorListenerAdapter
Date Thu, 07 Nov 2013 05:31:36 GMT
Updated Branches:
  refs/heads/master 2914dc730 -> e82ebf8c0


Updated for new LeaderSelectorListenerAdapter


Project: http://git-wip-us.apache.org/repos/asf/curator/repo
Commit: http://git-wip-us.apache.org/repos/asf/curator/commit/e82ebf8c
Tree: http://git-wip-us.apache.org/repos/asf/curator/tree/e82ebf8c
Diff: http://git-wip-us.apache.org/repos/asf/curator/diff/e82ebf8c

Branch: refs/heads/master
Commit: e82ebf8c0acfc99859f2b771fa3c881bfe757c9e
Parents: 2914dc7
Author: randgalt <randgalt@apache.org>
Authored: Wed Nov 6 21:31:27 2013 -0800
Committer: randgalt <randgalt@apache.org>
Committed: Wed Nov 6 21:31:27 2013 -0800

----------------------------------------------------------------------
 src/site/confluence/getting-started.confluence | 8 +-------
 1 file changed, 1 insertion(+), 7 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/curator/blob/e82ebf8c/src/site/confluence/getting-started.confluence
----------------------------------------------------------------------
diff --git a/src/site/confluence/getting-started.confluence b/src/site/confluence/getting-started.confluence
index 4366f35..03a77db 100644
--- a/src/site/confluence/getting-started.confluence
+++ b/src/site/confluence/getting-started.confluence
@@ -68,7 +68,7 @@ if ( lock.acquire(maxWait, waitUnit) )
 h3. Leader Election
 
 {code}
-LeaderSelectorListener listener = new LeaderSelectorListener()
+LeaderSelectorListener listener = new LeaderSelectorListenerAdapter()
 {
     public void takeLeadership(CuratorFramework client) throws Exception
     {
@@ -76,12 +76,6 @@ LeaderSelectorListener listener = new LeaderSelectorListener()
         // do whatever leader work you need to and only exit
         // this method when you want to relinquish leadership
     }
-
-    public void stateChanged(CuratorFramework client, ConnectionState newState)
-    {
-        // see http://curator.apache.org/errors.html
-        // You always need to be aware that connections to ZK can fail
-    }
 }
 
 LeaderSelector selector = new LeaderSelector(client, path, listener);


Mime
View raw message