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 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:
initialValuein classThreadLocal<BasicInput>
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable
-