Class PersistenceConfiguration

All Implemented Interfaces:

public class PersistenceConfiguration extends Object implements Matchable<PersistenceConfiguration>
Configuration for stores.
  • Field Details

  • Method Details

    • passivation

      public boolean passivation()
      If true, data is only written to the cache store when it is evicted from memory, a phenomenon known as 'passivation'. Next time the data is requested, it will be 'activated' which means that data will be brought back to memory and removed from the persistent store. This gives you the ability to 'overflow' to disk, similar to swapping in an operating system.

      If false, the cache store contains a copy of the contents in memory, so writes to cache result in cache store writes. This essentially gives you a 'write-through' configuration.
    • availabilityInterval

      public int availabilityInterval()
    • connectionAttempts

      public int connectionAttempts()
    • connectionInterval

      public int connectionInterval()
    • stores

      public List<StoreConfiguration> stores()
    • fetchPersistentState

      @Deprecated(forRemoval=true) public Boolean fetchPersistentState()
      Deprecated, for removal: This API element is subject to removal in a future version.
      since 14.0. This will always return false
      Loops through all individual cache loader configs and checks if fetchPersistentState is set on any of them
    • preload

      public Boolean preload()
      Loops through all individual cache loader configs and checks if preload is set on any of them
    • usingStores

      public boolean usingStores()
    • usingAsyncStore

      public boolean usingAsyncStore()
    • usingSegmentedStore

      public boolean usingSegmentedStore()
      Returns if any store is StoreConfiguration.segmented()
      true if any configured store is segmented, otherwise false
    • attributes

      public AttributeSet attributes()
    • toString

      public String toString()
      toString in class Object
    • equals

      public boolean equals(Object obj)
      equals in class Object
    • hashCode

      public int hashCode()
      hashCode in class Object