Package org.entur.jwt.client.properties
Class JwtPreemptiveRefresh
java.lang.Object
org.entur.jwt.client.properties.JwtPreemptiveRefresh
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected JwtEagerRefreshshould the cache be refresh even if there is no traffic? -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetEager()intintbooleanvoidsetEager(JwtEagerRefresh eager) voidsetEnabled(boolean enabled) voidsetExpiresConstraint(int expireConstraint) voidsetTimeToExpires(int time)
-
Field Details
-
eager
should the cache be refresh even if there is no traffic?
-
-
Constructor Details
-
JwtPreemptiveRefresh
public JwtPreemptiveRefresh()
-
-
Method Details
-
isEnabled
public boolean isEnabled() -
setEnabled
public void setEnabled(boolean enabled) -
getTimeToExpires
public int getTimeToExpires() -
setTimeToExpires
public void setTimeToExpires(int time) -
setEager
-
getEager
-
setExpiresConstraint
public void setExpiresConstraint(int expireConstraint) -
getExpiresConstraint
public int getExpiresConstraint()
-