Package org.apache.sis.metadata.sql
Class MetadataSource.CloseTask
java.lang.Object
org.apache.sis.internal.system.DelayedRunnable
org.apache.sis.metadata.sql.MetadataSource.CloseTask
- All Implemented Interfaces:
Comparable<Delayed>
,Runnable
,Delayed
- Enclosing class:
- MetadataSource
A task to be executed later for closing all expired
CachedStatement
.
A result is expired if CachedStatement.expireTime
is later than System.nanoTime()
.-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.sis.internal.system.DelayedRunnable
DelayedRunnable.Immediate
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
run()
Invoked in a background thread for closing all expiredCachedStatement
instances.Methods inherited from class org.apache.sis.internal.system.DelayedRunnable
compareTo, getDelay
-
Constructor Details
-
CloseTask
CloseTask(long timestamp) Creates a new task to be executed later.- Parameters:
timestamp
- time of execution of this task, in nanoseconds relative toSystem.nanoTime()
.
-
-
Method Details
-
run
public void run()Invoked in a background thread for closing all expiredCachedStatement
instances.
-