* minute of inactivity.
*/
private RefreshStrategy createRefreshStrategy(Long refreshInterval) {
return new RefreshStrategy(refreshInterval == null
? new RefreshStrategy[] {
new Once(false),
new LogOnce(60),
new ThreadSynchronising(threadSaveCount)}
: new RefreshStrategy[] {
new Once(false),
new Timed(refreshInterval),
new ThreadSynchronising(threadSaveCount)});
}