Constructor and Description |
---|
Definition(Class<? extends Session.Store> store)
Creates a new session definition.
|
Definition(Session.Store store)
Creates a new session definition.
|
Modifier and Type | Method and Description |
---|---|
Cookie.Definition |
cookie() |
Optional<Long> |
saveInterval()
Indicates how frequently a no-dirty session should be persisted (in millis).
|
Session.Definition |
saveInterval(long saveInterval)
Set/override how frequently a no-dirty session should be persisted (in millis).
|
Object |
store() |
public Definition(Class<? extends Session.Store> store)
store
- A session store.
public Definition(Session.Store store)
store
- A session store.
public Optional<Long> saveInterval()
public Session.Definition saveInterval(long saveInterval)
saveInterval
- Save interval in millis or -1
for turning it off.
public Object store()
public Cookie.Definition cookie()
Copyright © 2019. All rights reserved.