Class ReadThruOptions


  • public class ReadThruOptions
    extends java.lang.Object
    A class that defines how fetch operations can be handled through the datasource if the desired data is not present in the cache.
    • Constructor Detail

      • ReadThruOptions

        public ReadThruOptions​(ReadMode mode,
                               java.lang.String providerName)
        Initializes a new instance of ReadThruOptions.
        Parameters:
        mode - ReadMode for ReadThruOptions.
        providerName - A unique identifier for the data source provider.
      • ReadThruOptions

        public ReadThruOptions​(ReadMode mode)
        Initializes a new instance of ReadThruOptions.
        Parameters:
        mode - ReadMode for ReadThruOptions.
    • Method Detail

      • getReadMode

        public final ReadMode getReadMode()
        Gets the ReadMode for read-through options.
        Returns:
        The ReadMode associated with read-through options.
      • setReadMode

        public final void setReadMode​(ReadMode mode)
        Sets the ReadMode for 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.