Package uk.ac.starlink.fits
Class BasicInputThreadLocal
- All Implemented Interfaces:
Closeable
,AutoCloseable
ThreadLocal based on an InputFactory.
This can dispense a BasicInput object private to the current thread.
The close method will close all the BasicInput objects that this
has created so far.
- Since:
- 30 Jun 2017
- Author:
- Mark Taylor
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.ThreadLocal
get, remove, set, withInitial
-
Constructor Details
-
BasicInputThreadLocal
Constructor.- Parameters:
inputFact
- factory for BasicInput objectsisSeq
- true if created inputs are sequential, false for random
-
-
Method Details
-
initialValue
- Overrides:
initialValue
in classThreadLocal<BasicInput>
-
close
public void close()- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
-