zookeeper-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From laboo <mlibu...@gmail.com>
Subject ZooKeeperException.Code and ints
Date Tue, 25 Oct 2011 01:06:15 GMT
The first argument of processResults() callback is an int datatype.

But the ZooKeeperException.Code's that are ints are deprecated. Not sure how
I should eliminate the deprecated Codes and use a switch statement like in
the Executor sample app.

Am I missing something? Should the processResults callbacks be changed?
Should I give up on using a switch statment, or give up using the new Codes?

Thanks for any direction you can give me here on best practices.


View this message in context: http://zookeeper-user.578899.n2.nabble.com/ZooKeeperException-Code-and-ints-tp6927186p6927186.html
Sent from the zookeeper-user mailing list archive at Nabble.com.

View raw message