Class SingletonStoreConfiguration

  • All Implemented Interfaces:
    Matchable<SingletonStoreConfiguration>

    @Deprecated
    public class SingletonStoreConfiguration
    extends java.lang.Object
    implements Matchable<SingletonStoreConfiguration>
    Deprecated.
    Singleton writers will be removed in 10.0. If it is desirable that all nodes don't write to the underlying store then a shared store should be used instead, as this only performs store writes at a key's primary owner.
    SingletonStore is a delegating cache store used for situations when only one instance in a cluster should interact with the underlying store. The coordinator of the cluster will be responsible for the underlying CacheStore. SingletonStore is a simply facade to a real CacheStore implementation. It always delegates reads to the real CacheStore.
    Author:
    pmuir
    • Field Detail

      • PUSH_STATE_TIMEOUT

        public static final AttributeDefinition<java.lang.Long> PUSH_STATE_TIMEOUT
        Deprecated.
      • PUSH_STATE_WHEN_COORDINATOR

        public static final AttributeDefinition<java.lang.Boolean> PUSH_STATE_WHEN_COORDINATOR
        Deprecated.
    • Method Detail

      • attributeDefinitionSet

        public static AttributeSet attributeDefinitionSet()
        Deprecated.
      • enabled

        public boolean enabled()
        Deprecated.
        If true, the singleton store cache store is enabled.
      • pushStateTimeout

        public long pushStateTimeout()
        Deprecated.
        If pushStateWhenCoordinator is true, this property sets the maximum number of milliseconds that the process of pushing the in-memory state to the underlying cache loader should take.
      • pushStateWhenCoordinator

        public boolean pushStateWhenCoordinator()
        Deprecated.
        If true, when a node becomes the coordinator, it will transfer in-memory state to the underlying cache store. This can be very useful in situations where the coordinator crashes and there's a gap in time until the new coordinator is elected.
      • toString

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

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

        public boolean equals​(java.lang.Object obj)
        Deprecated.
        Overrides:
        equals in class java.lang.Object