Package org.jupnp.model
Klasse ExpirationDetails
java.lang.Object
org.jupnp.model.ExpirationDetails
- Autor:
- Christian Bauer
-
Feldübersicht
Felder -
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungprotected longlongintintlongbooleanbooleanhasExpired(boolean halfTime) voidvoidsetLastRefreshTimestampSeconds(long lastRefreshTimestampSeconds) voidtoString()
-
Felddetails
-
UNLIMITED_AGE
public static final int UNLIMITED_AGE- Siehe auch:
-
-
Konstruktordetails
-
ExpirationDetails
public ExpirationDetails() -
ExpirationDetails
public ExpirationDetails(int maxAgeSeconds)
-
-
Methodendetails
-
getMaxAgeSeconds
public int getMaxAgeSeconds() -
getLastRefreshTimestampSeconds
public long getLastRefreshTimestampSeconds() -
setLastRefreshTimestampSeconds
public void setLastRefreshTimestampSeconds(long lastRefreshTimestampSeconds) -
stampLastRefresh
public void stampLastRefresh() -
hasExpired
public boolean hasExpired() -
renewAttempted
public void renewAttempted() -
getRenewAttempts
public int getRenewAttempts() -
hasExpired
public boolean hasExpired(boolean halfTime) - Parameter:
halfTime- Iftruethen half maximum age is used to determine expiration.- Gibt zurück:
trueif the maximum age has been reached.
-
getSecondsUntilExpiration
public long getSecondsUntilExpiration() -
getCurrentTimestampSeconds
protected long getCurrentTimestampSeconds() -
toString
-