O'Reilly logo
  • Hideo Takahashi thinks this is interesting:

isLeader

From

Cover of ZooKeeper

Note

Needs to be a static variable for later snippet to work.