Package gda.device.scannable
Class PositionStreamIndexer<T>
java.lang.Object
gda.device.scannable.PositionStreamIndexer<T>
- Type Parameters:
T-
- All Implemented Interfaces:
PositionCallableProvider<T>
Used as a component in
PositionCallableProviders that implement PositionInputStreams an indexer can
be deferred to to very easily implement PositionCallableProvider.getPositionCallable().-
Constructor Summary
ConstructorsConstructorDescriptionPositionStreamIndexer(PositionInputStream<T> stream) PositionStreamIndexer(PositionInputStream<T> stream, int maxElementsToReadInOneGo) -
Method Summary
Modifier and TypeMethodDescriptionget(int index) Can only be called once for each indexgetNamedPositionCallable(String name, int threadPoolSize)
-
Constructor Details
-
PositionStreamIndexer
-
PositionStreamIndexer
-
-
Method Details
-
get
Can only be called once for each index -
getPositionCallable
- Specified by:
getPositionCallablein interfacePositionCallableProvider<T>- Throws:
DeviceException
-
getNamedPositionCallable
-