public class NamedCacheStaleDataException extends NamedCacheException
NamedCache.retrieve(com.scaleoutsoftware.soss.client.CachedObjectId<T>, boolean)
method if the object that is being read is a local
copy of the remote master object (proxy) and the previous polling operation failed PollingCoherencyPolicy
.
For the exception to be thrown, the GeoServerReadMode.LocalThrowOnStaleData
should be set, otherwise the stale data
is returned normally.
When this exception is caught, a stale object can still be recovered by getStaleObject()
.Modifier and Type | Method and Description |
---|---|
Object |
getStaleObject()
Returns a 'stale' object.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public Object getStaleObject()
Copyright (C) 2007-2014 ScaleOut Software, Inc.