* * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. Log Factory; import org.springframework.beans.factory. Bean Name Aware; import org.springframework.beans.factory. Factory Bean; import org.springframework.beans.factory. * * If the specified named cache is not configured in the cache configuration descriptor, * this Factory Bean will construct an instance of a Cache with the provided name and the * specified cache properties and add it to the Cache Manager for later retrieval. Assert; /** * Factory Bean that creates a named EHCache instance * (or a decorator that implements the interface), * representing a cache region within an EHCache .A percentage of advertising revenue from pages under the /java/jwarehouse URI on this website is paid back to open source projects.
For a cluster that experiences regular but short network interruptions, and in which caches clustered with Terracotta carry read-mostly data or there is tolerance of potentially stale data, you may want to set , with the method's timeout set to less than the nonstop timeout, avoids this problem. Simply put: you should have the Memory Store large enough that it covers the bulk of the items you want cached.In general, keeping an eye on cache hits and miss will tell you a lot about the cache effectiveness.One way Big Memory Max can go into nonstop mode is when a client receives a "cluster offline" event.Note that a nonstop instance can go into nonstop mode even if the client is not disconnected, such as when an operation is unable to complete within the timeout allotted by the nonstop configuration.