public interface RefreshStrategy
needsRefresh(long) to determine
whether a refresh is needed.RefreshStrategy.Composite,
RefreshStrategy.Timed| Modifier and Type | Interface and Description |
|---|---|
static class |
RefreshStrategy.Composite
Composite of zero or more
RefreshStrategy instances,
each of which covers a certain strategy. |
static class |
RefreshStrategy.Timed
This refresh strategy refreshes after a given timeout of inactivity.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
needsRefresh(long secondsSinceLastAccess)
Determine whether the given session needs to refresh before the next
session operation is performed.
|
void |
refreshed() |
boolean needsRefresh(long secondsSinceLastAccess)
This implementation returns true if and only if any of the
individual refresh strategies passed to the constructor returns
true.
secondsSinceLastAccess - seconds since last accesstrue if and only if the session needs to refresh.void refreshed()
Copyright © 2012–2020 The Apache Software Foundation. All rights reserved.