com.sleepycat.je
Interface CacheModeStrategy

All Superinterfaces:
Serializable

public interface CacheModeStrategy
extends Serializable

Since:
4.0.97

Method Summary
 CacheMode getCacheMode()
          Returns the cache mode to be used for an operation where CacheMode.DYNAMIC is the configured cache mode.
 

Method Detail

getCacheMode

CacheMode getCacheMode()
Returns the cache mode to be used for an operation where CacheMode.DYNAMIC is the configured cache mode.

This method is called prior to every operation where CacheMode.DYNAMIC applies. The returned value is then used as the effective cache mode for the operation.

This method may not return null or CacheMode.DYNAMIC. If it does, an IllegalArgumentException will be thrown by the operation where CacheMode.DYNAMIC is used.

Returns:
the cache mode to be used.


Copyright (c) 2004-2012 Oracle. All rights reserved.