Class JESpace.Ref
java.lang.Object
org.jpos.space.JESpace.Ref
Persistent entity representing a single space entry (key/value with optional expiration).
- Since:
- 1.6.5
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlongReturns the expiration timestamp in epoch milliseconds.longgetId()Returns the primary key id of this Ref.getKey()Returns the space key of this Ref.getValue()Returns the deserialized value of this Ref.booleanReturnstrueif this Ref has an expiration set.booleanisActive()Returnstrueif this Ref has not yet expired.booleanReturnstrueif this Ref has passed its expiration time.voidNegates the id to push this entry to the front of an ordered scan (push semantics).
-
Constructor Details
-
Ref
public Ref()Default constructor required by BerkeleyDB JE. -
Ref
-
-
Method Details
-
getId
-
reverseId
Negates the id to push this entry to the front of an ordered scan (push semantics). -
isExpired
Returnstrueif this Ref has passed its expiration time.- Returns:
trueif expired
-
isActive
Returnstrueif this Ref has not yet expired.- Returns:
trueif still active
-
getKey
-
getValue
-
getExpiration
Returns the expiration timestamp in epoch milliseconds.- Returns:
- expiration time, or 0 if no expiration is set
-
hasExpiration
Returnstrueif this Ref has an expiration set.- Returns:
trueif an expiration time is set
-