org.epics.archiverappliance are the main interfaces in the archiver appliance.
Events map to Channel Access events while EventStreams are sequences of events available in a streaming fashion.
Readers generate EventStreams; Writers consume EventStreams.
A StoragePlugin is a Reader+Writer with some initialization and other interfaces.
try(EventStream stream = reader.getDataForPV(...)) {
for(Event event : stream) {
// Do stuff.
}
}