Package net.sf.ehcache.constructs.nonstop

Examples of net.sf.ehcache.constructs.nonstop.NonStopCacheException


            }

            public Boolean performClusterOperationTimedOut(final TimeoutBehaviorType configuredTimeoutBehavior) {
                switch (configuredTimeoutBehavior) {
                    case EXCEPTION:
                        throw new NonStopCacheException("isHeldByCurrentThread timed out");
                    case LOCAL_READS:
                    case NOOP:
                        return false;
                    default:
                        throw new NonStopCacheException("unknown nonstop timeout behavior type: " + configuredTimeoutBehavior);
                }
            }
        });
    }
View Full Code Here


                return null;
            }

            public Void performClusterOperationTimedOut(final TimeoutBehaviorType configuredTimeoutBehavior) {
                // throw exception for all behaviors
                throw new NonStopCacheException("lock() timed out");
            }
        });
    }
View Full Code Here

                return lockAcquired;
            }

            public Boolean performClusterOperationTimedOut(final TimeoutBehaviorType configuredTimeoutBehavior) {
                // throw exception for all behaviors
                throw new NonStopCacheException("tryLock() timed out");
            }
        });
    }
View Full Code Here

            public Void performClusterOperationTimedOut(final TimeoutBehaviorType configuredTimeoutBehavior) {
                // always clean up lock stack for unlock even on timeouts
                appThreadLockContext.lockReleased();
                // throw exception for all behaviors
                throw new NonStopCacheException("unlock() timed out");
            }
        });
    }
View Full Code Here

                        cache.initialise();
                        return null;
                    }
                }, timeoutMillis);
            } catch (TimeoutException e) {
                throw new NonStopCacheException("Unable to add cache [" + cache.getCacheConfiguration().getName() + "] within "
                        + timeoutMillis + " msecs", e);
            } catch (InterruptedException e) {
                throw new CacheException(e);
            }
        } else {
View Full Code Here

TOP

Related Classes of net.sf.ehcache.constructs.nonstop.NonStopCacheException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.