Class JESpace.GCRef
java.lang.Object
org.jpos.space.JESpace.GCRef
Persistent entity used by the garbage collector to track expiring Ref entries.
- Since:
- 1.6.5
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlongReturns the expiration timestamp in epoch milliseconds.longgetId()Returns the id of the corresponding Ref entry.booleanReturnstrueif the expiration time has passed.
-
Constructor Details
-
GCRef
public GCRef()Default constructor required by BerkeleyDB JE. -
GCRef
Constructs a GCRef for the given Ref id and expiration time.- Parameters:
id- the id of the Ref to be collectedexpires- the expiration timestamp in epoch milliseconds
-
-
Method Details
-
getId
-
isExpired
Returnstrueif the expiration time has passed.- Returns:
trueif this GCRef is expired
-
getExpiration
Returns the expiration timestamp in epoch milliseconds.- Returns:
- expiration time
-