Class InSessionPageStore

    • Constructor Detail

      • InSessionPageStore

        public InSessionPageStore​(int maxPages)
        Keep maxPages persistent in each session.

        Any page added to this store not being a SerializedPage will be dropped on serialization of the session.

        Parameters:
        maxPages - maximum pages to keep in session
      • InSessionPageStore

        public InSessionPageStore​(Bytes maxBytes)
        Keep page up to maxBytes persistent in each session.

        All pages added to this store must be SerializedPages. You can achieve this by letting a SerializingPageStore delegate to this store.

        Parameters:
        maxBytes - maximum bytes to keep in session
      • InSessionPageStore

        public InSessionPageStore​(int maxPages,
                                  ISerializer serializer)
        Keep a cache of maxPages in each session.

        If the container serializes sessions to disk, any non-SerializedPage added to this store will be automatically serialized.

        Parameters:
        maxPages - maximum pages to keep in session
        serializer - optional serializer used only in case session serialization