org.neo4j.kernel.ha
Class InstanceAccessGuard

java.lang.Object
  extended by 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).


Constructor Summary
InstanceAccessGuard()
           
 
Method Summary
 boolean await(long millis)
           
 void setState(HighAvailabilityMemberState state)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InstanceAccessGuard

public InstanceAccessGuard()
Method Detail

await

public boolean await(long millis)

setState

public void setState(HighAvailabilityMemberState state)


Copyright © 2002-2013 The Neo4j Graph Database Project. All Rights Reserved.