org.neo4j.kernel.ha
Class InstanceAccessGuard
java.lang.Object
org.neo4j.kernel.ha.InstanceAccessGuard
public class InstanceAccessGuard
- extends Object
The instance guard is what ensures that the database will only take calls when it is in an ok state. It changes
whenever the ClusterMemberState changes, and then allows query handling to easily determine if it is ok to call
the database by calling await(long).
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
InstanceAccessGuard
public InstanceAccessGuard()
await
public boolean await(long millis)
setState
public void setState(HighAvailabilityMemberState state)
Copyright © 2002-2013 The Neo4j Graph Database Project. All Rights Reserved.