com.sleepycat.persist.impl
Class RefreshException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by com.sleepycat.persist.impl.RefreshException
All Implemented Interfaces:
Serializable

public class RefreshException
extends RuntimeException

Thrown and handled internally when metadata must be refreshed on a Replica. See the refresh() method below.

See Also:
Serialized Form

Constructor Summary
RefreshException(Store store, PersistCatalog catalog, int formatId)
           
 
Method Summary
 String getMessage()
           
(package private)  PersistCatalog refresh()
          This method must be called to handle this exception in the binding methods, after the stack has rewound.
 
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
 

Constructor Detail

RefreshException

RefreshException(Store store,
                 PersistCatalog catalog,
                 int formatId)
Method Detail

refresh

PersistCatalog refresh()
This method must be called to handle this exception in the binding methods, after the stack has rewound. The binding methods should retry the operation once after calling this method. If the operation fails again, then corruption rather than stale metadata is the likely cause of the problem, and an exception will be thrown to that effect. [#16655]


getMessage

public String getMessage()
Overrides:
getMessage in class Throwable


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