com.sleepycat.je.rep
Class StateChangeException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.sleepycat.je.DatabaseException
com.sleepycat.je.OperationFailureException
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
getEvent
public StateChangeEvent getEvent()
- Returns the event that resulted in this exception.
- Returns:
- the state change event
Copyright (c) 2004-2010 Oracle. All rights reserved.