Class EmptyEventStream
- java.lang.Object
-
- org.epics.archiverappliance.common.EmptyEventStream
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
,Iterable<Event>
,EventStream
,RemotableOverRaw
public class EmptyEventStream extends Object implements EventStream, RemotableOverRaw
Instead of returning null, in some cases, it may be more convenient to return a EventStream with no events- Author:
- mshankar
-
-
Constructor Summary
Constructors Constructor Description EmptyEventStream(String pvName, ArchDBRTypes type)
-
Method Summary
Modifier and Type Method Description void
close()
RemotableEventStreamDesc
getDescription()
Iterator<Event>
iterator()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Constructor Detail
-
EmptyEventStream
public EmptyEventStream(String pvName, ArchDBRTypes type)
-
-
Method Detail
-
close
public void close() throws IOException
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
-
getDescription
public RemotableEventStreamDesc getDescription()
- Specified by:
getDescription
in interfaceEventStream
- Specified by:
getDescription
in interfaceRemotableOverRaw
-
-