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 |
---|---|
java.lang.Object |
getStaleObject()
Returns a 'stale' object.
|