Class SimulationEventStream
java.lang.Object
org.epics.archiverappliance.utils.simulation.SimulationEventStream
- All Implemented Interfaces:
Closeable,AutoCloseable,Iterable<Event>,RemotableOverRaw,EventStream
An EventStream that backed by a generator.
- Author:
- mshankar
-
Constructor Summary
ConstructorsConstructorDescriptionSimulationEventStream(ArchDBRTypes type, SimulationValueGenerator valueGenerator, Instant start, Instant end, int periodInSeconds) -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
SimulationEventStream
public SimulationEventStream(ArchDBRTypes type, SimulationValueGenerator valueGenerator, Instant start, Instant end, int periodInSeconds)
-
-
Method Details
-
iterator
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable
-
getDescription
- Specified by:
getDescriptionin interfaceEventStream- Specified by:
getDescriptionin interfaceRemotableOverRaw
-
getNumberOfEvents
public long getNumberOfEvents()
-