Berkeley DB Java Edition
version 4.1.6

com.sleepycat.je.rep
Class StateChangeException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by com.sleepycat.je.DatabaseException
                  extended by com.sleepycat.je.OperationFailureException
                      extended by com.sleepycat.je.rep.StateChangeException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
MasterStateException, ReplicaWriteException, UnknownMasterException

public abstract class StateChangeException
extends OperationFailureException

Provides a synchronous mechanism for informing an application about a change in the state of the replication node. StateChangeException is an abstract class, with subtypes for each type of Transition.

A single state change can result in multiple state change exceptions (one per thread operating against the environment). Each exception is associated with the event that provoked the exception. The application can use this association to ensure that each such event is processed just once.

See Also:
Serialized Form

Method Summary
 StateChangeEvent getEvent()
          Returns the event that resulted in this exception.
 
Methods inherited from class com.sleepycat.je.DatabaseException
getMessage
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getEvent

public StateChangeEvent getEvent()
Returns the event that resulted in this exception.

Returns:
the state change event

Berkeley DB Java Edition
version 4.1.6

Copyright (c) 2004-2010 Oracle. All rights reserved.