Class ReadThruOptions
- java.lang.Object
-
- com.alachisoft.ncache.runtime.caching.ReadThruOptions
-
public class ReadThruOptions extends java.lang.Object
Class that defines the fetch operation on cache can read from data source if item not found.
-
-
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.String
getProviderName()
Gets the unique identifier for the data source provider.ReadMode
getReadMode()
Gets theReadMode
for read-through options.void
setProviderName(java.lang.String value)
Sets the unique identifier for the datasource provider.void
setReadMode(ReadMode mode)
Sets theReadMode
for read-through options.
-
-
-
Method Detail
-
getReadMode
public final ReadMode getReadMode()
Gets theReadMode
for read-through options.- Returns:
- The readmode associated with readthru options.
-
setReadMode
public final void setReadMode(ReadMode mode)
Sets theReadMode
for read-through options.- Parameters:
mode
- The readmode to be associated with readthru options.
-
getProviderName
public final java.lang.String getProviderName()
Gets the unique identifier for the data source provider.- Returns:
- The name of the datasource provider.
-
setProviderName
public final void setProviderName(java.lang.String value)
Sets the unique identifier for the datasource provider.- Parameters:
value
- The name of the datasource provider.
-
-