Class ReplicatedBackingStore<K extends Serializable,​V extends Serializable>

    • Constructor Detail

      • ReplicatedBackingStore

        public ReplicatedBackingStore()
    • Method Detail

      • getBackingStoreFactory

        public org.glassfish.ha.store.api.BackingStoreFactory getBackingStoreFactory()
        Specified by:
        getBackingStoreFactory in class org.glassfish.ha.store.api.BackingStore<K extends Serializable,​V extends Serializable>
      • initialize

        public void initialize​(org.glassfish.ha.store.api.BackingStoreConfiguration<K,​V> conf)
                        throws org.glassfish.ha.store.api.BackingStoreException
        Overrides:
        initialize in class org.glassfish.ha.store.api.BackingStore<K extends Serializable,​V extends Serializable>
        Throws:
        org.glassfish.ha.store.api.BackingStoreException
      • load

        public V load​(K key,
                      String versionInfo)
               throws org.glassfish.ha.store.api.BackingStoreException
        Specified by:
        load in class org.glassfish.ha.store.api.BackingStore<K extends Serializable,​V extends Serializable>
        Throws:
        org.glassfish.ha.store.api.BackingStoreException
      • save

        public String save​(K key,
                           V value,
                           boolean isNew)
                    throws org.glassfish.ha.store.api.BackingStoreException
        Specified by:
        save in class org.glassfish.ha.store.api.BackingStore<K extends Serializable,​V extends Serializable>
        Throws:
        org.glassfish.ha.store.api.BackingStoreException
      • remove

        public void remove​(K key)
                    throws org.glassfish.ha.store.api.BackingStoreException
        Specified by:
        remove in class org.glassfish.ha.store.api.BackingStore<K extends Serializable,​V extends Serializable>
        Throws:
        org.glassfish.ha.store.api.BackingStoreException
      • removeExpired

        public int removeExpired​(long idleTime)
                          throws org.glassfish.ha.store.api.BackingStoreException
        Overrides:
        removeExpired in class org.glassfish.ha.store.api.BackingStore<K extends Serializable,​V extends Serializable>
        Throws:
        org.glassfish.ha.store.api.BackingStoreException
      • size

        public int size()
                 throws org.glassfish.ha.store.api.BackingStoreException
        Specified by:
        size in class org.glassfish.ha.store.api.BackingStore<K extends Serializable,​V extends Serializable>
        Throws:
        org.glassfish.ha.store.api.BackingStoreException
      • close

        public void close()
                   throws org.glassfish.ha.store.api.BackingStoreException
        Overrides:
        close in class org.glassfish.ha.store.api.BackingStore<K extends Serializable,​V extends Serializable>
        Throws:
        org.glassfish.ha.store.api.BackingStoreException
      • destroy

        public void destroy()
                     throws org.glassfish.ha.store.api.BackingStoreException
        Overrides:
        destroy in class org.glassfish.ha.store.api.BackingStore<K extends Serializable,​V extends Serializable>
        Throws:
        org.glassfish.ha.store.api.BackingStoreException
      • updateTimestamp

        public void updateTimestamp​(K key,
                                    long time)
                             throws org.glassfish.ha.store.api.BackingStoreException
        Overrides:
        updateTimestamp in class org.glassfish.ha.store.api.BackingStore<K extends Serializable,​V extends Serializable>
        Throws:
        org.glassfish.ha.store.api.BackingStoreException