Class ReadThruOptions
- java.lang.Object
-
- com.alachisoft.ncache.runtime.caching.ReadThruOptions
-
public class ReadThruOptions extends java.lang.ObjectA class that defines how fetch operations can be handled through the datasource if the desired data is not present in the cache.
-
-
Constructor Summary
Constructors Constructor Description ReadThruOptions(ReadMode mode)Initializes a new instance of ReadThruOptions.ReadThruOptions(ReadMode mode, java.lang.String providerName)Initializes a new instance of ReadThruOptions.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetProviderName()Gets the unique identifier for the data source provider.ReadModegetReadMode()Gets theReadModefor read-through options.voidsetProviderName(java.lang.String value)Sets the unique identifier for the data source provider.voidsetReadMode(ReadMode mode)Sets theReadModefor read-through options.
-
-
-
Method Detail
-
getReadMode
public final ReadMode getReadMode()
Gets theReadModefor read-through options.- Returns:
- The ReadMode associated with read-through options.
-
setReadMode
public final void setReadMode(ReadMode mode)
Sets theReadModefor read-through options.- Parameters:
mode- The ReadMode to be associated with read-through options.
-
getProviderName
public final java.lang.String getProviderName()
Gets the unique identifier for the data source provider.- Returns:
- The name of the data source provider.
-
setProviderName
public final void setProviderName(java.lang.String value)
Sets the unique identifier for the data source provider.- Parameters:
value- The name of the data source provider.
-
-