Class NearCachePreloaderConfig

    • Field Detail

      • DEFAULT_STORE_INITIAL_DELAY_SECONDS

        public static final int DEFAULT_STORE_INITIAL_DELAY_SECONDS
        Default initial delay for the Near Cache key storage.
        See Also:
        Constant Field Values
      • DEFAULT_STORE_INTERVAL_SECONDS

        public static final int DEFAULT_STORE_INTERVAL_SECONDS
        Default interval for the Near Cache key storage (in seconds).
        See Also:
        Constant Field Values
    • Constructor Detail

      • NearCachePreloaderConfig

        public NearCachePreloaderConfig()
      • NearCachePreloaderConfig

        public NearCachePreloaderConfig​(java.lang.String directory)
      • NearCachePreloaderConfig

        public NearCachePreloaderConfig​(boolean enabled,
                                        java.lang.String directory)
    • Method Detail

      • isEnabled

        public boolean isEnabled()
      • getDirectory

        public java.lang.String getDirectory()
      • getStoreInitialDelaySeconds

        public int getStoreInitialDelaySeconds()
      • setStoreInitialDelaySeconds

        public NearCachePreloaderConfig setStoreInitialDelaySeconds​(int storeInitialDelaySeconds)
      • getStoreIntervalSeconds

        public int getStoreIntervalSeconds()
      • writeData

        public void writeData​(ObjectDataOutput out)
                       throws java.io.IOException
        Description copied from interface: DataSerializable
        Writes object fields to output stream
        Specified by:
        writeData in interface DataSerializable
        Parameters:
        out - output
        Throws:
        java.io.IOException - if an I/O error occurs. In particular, an IOException may be thrown if the output stream has been closed.
      • readData

        public void readData​(ObjectDataInput in)
                      throws java.io.IOException
        Description copied from interface: DataSerializable
        Reads fields from the input stream
        Specified by:
        readData in interface DataSerializable
        Parameters:
        in - input
        Throws:
        java.io.IOException - if an I/O error occurs. In particular, an IOException may be thrown if the input stream has been closed.
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object