Example usage for org.apache.wicket.pageStore.memory PageNumberEvictionStrategy PageNumberEvictionStrategy

List of usage examples for org.apache.wicket.pageStore.memory PageNumberEvictionStrategy PageNumberEvictionStrategy

Introduction

In this page you can find the example usage for org.apache.wicket.pageStore.memory PageNumberEvictionStrategy PageNumberEvictionStrategy.

Prototype

public PageNumberEvictionStrategy(int pagesNumber) 

Source Link

Document

Construct.

Usage

From source file:de.codepitbull.sessionstore.WicketApplication.java

License:Apache License

@Override
public void init() {
    super.init();
    getStoreSettings().setInmemoryCacheSize(1);
    setPageManagerProvider(new DefaultPageManagerProvider(this) {
        @Override//from w w w .  jav  a2  s.  c o m
        protected IDataStore newDataStore() {
            return new HttpSessionDataStore(getPageManagerContext(), new PageNumberEvictionStrategy(10));
        }
    });
}