Class StoreBase

    • Field Detail

      • storeName

        protected static final java.lang.String storeName
        Name to register for this Store, used for logging.
        See Also:
        Constant Field Values
      • support

        protected final java.beans.PropertyChangeSupport support
        The property change support for this component.
      • sm

        protected static final StringManager sm
        The string manager for this package.
      • manager

        protected Manager manager
        The Manager with which this Store is associated.
    • Constructor Detail

      • StoreBase

        public StoreBase()
    • Method Detail

      • getStoreName

        public java.lang.String getStoreName()
        the name for this Store, used for logging.
      • setManager

        public void setManager​(Manager manager)
        Set the Manager with which this Store is associated.
        Specified by:
        setManager in interface Store
        manager - The newly associated Manager
      • getManager

        public Manager getManager()
        Specified by:
        getManager in interface Store
        the Manager with which the Store is associated.
      • addPropertyChangeListener

        public void addPropertyChangeListener​(java.beans.PropertyChangeListener listener)
        Add a property change listener to this component.
        Specified by:
        addPropertyChangeListener in interface Store
        listener - a value of type PropertyChangeListener
      • removePropertyChangeListener

        public void removePropertyChangeListener​(java.beans.PropertyChangeListener listener)
        Remove a property change listener from this component.
        Specified by:
        removePropertyChangeListener in interface Store
        listener - The listener to remove
      • expiredKeys

        public java.lang.String[] expiredKeys()
        Get only those keys of sessions, that are saved in the Store and are to be expired.
        list of session keys, that are to be expired
        Throws: - if an input-/output error occurred
      • processExpires

        public void processExpires()
        Called by our background reaper thread to check if Sessions saved in our store are subject of being expired. If so expire the Session and remove it from the Store.
      • getObjectInputStream

        protected getObjectInputStream​( is)
        Create the object input stream to use to read a session from the store. Sub-classes must have set the thread context class loader before calling this method.
        is - The input stream provided by the sub-class that will provide the data for a session
        An appropriately configured ObjectInputStream from which the session can be read.
        Throws: - if a problem occurs creating the ObjectInputStream
      • initInternal

        protected void initInternal()
        Description copied from class: LifecycleBase
        Sub-classes implement this method to perform any instance initialisation required.
        Specified by:
        initInternal in class LifecycleBase
      • destroyInternal

        protected void destroyInternal()
        Description copied from class: LifecycleBase
        Sub-classes implement this method to perform any instance destruction required.
        Specified by:
        destroyInternal in class LifecycleBase
      • toString

        public java.lang.String toString()
        toString in class java.lang.Object
        a String rendering of this object.