Class 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.
    • Constructor Detail

      • ReadThruOptions

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

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

      • getReadMode

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

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