|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.ThreadLocal<BasicInput>
uk.ac.starlink.fits.BasicInputThreadLocal
public class BasicInputThreadLocal
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.
Constructor Summary | |
---|---|
BasicInputThreadLocal(InputFactory inputFact,
boolean isSeq)
Constructor. |
Method Summary | |
---|---|
void |
close()
|
protected BasicInput |
initialValue()
|
Methods inherited from class java.lang.ThreadLocal |
---|
get, remove, set |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BasicInputThreadLocal(InputFactory inputFact, boolean isSeq)
inputFact
- factory for BasicInput objectsisSeq
- true if created inputs are sequential, false for randomMethod Detail |
---|
protected BasicInput initialValue()
initialValue
in class java.lang.ThreadLocal<BasicInput>
public void close()
close
in interface java.io.Closeable
|
Copyright © 2004 CLRC: Central Laboratory of the Research Councils. All rights reserved. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |