Class InSessionPageStore

    • Constructor Detail

      • InSessionPageStore

        public InSessionPageStore​(IPageStore delegate,
                                  int maxPages)
        Keep maxPages in each session.

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

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

        public InSessionPageStore​(IPageStore delegate,
                                  int maxPages,
                                  ISerializer serializer)
        Keep maxPages in each session.

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

        Parameters:
        delegate - store to delegate to
        maxPages - maximum pages to keep in session
        serializer - optional serializer of pages in the session
      • InSessionPageStore

        public InSessionPageStore​(IPageStore delegate,
                                  org.apache.wicket.util.lang.Bytes maxBytes)
        Keep page up to maxBytes 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:
        delegate - store to delegate to
        maxBytes - maximum bytes to keep in session