public class FirstAvailableDemultiplex extends Object implements IDemultiplex
IDemultiplex interface for the IBufferStore.MultiplexType.FirstAvailable type of demultiplexing| Constructor and Description |
|---|
FirstAvailableDemultiplex()
Create a new instance
|
| Modifier and Type | Method and Description |
|---|---|
void |
demultiplex()
Perform the demultiplexing operation
|
void |
dispose()
Dispose all internally managed information but not the externally provided entries
|
void |
setBufferStore(IBufferStore store)
The
IBufferStore over which the demultiplexing is performed |
void |
setDefinitionsList(ArrayList<RecordDefinition[]> definitionsList)
Sets the list of
RecordDefinitions in the order of the managed BufferStoreEntry list |
void |
setEntries(ArrayList<BufferStoreEntry> entries)
The entries over which the implementation needs to act
|
void |
setModificationNotify(Object notify)
Set the synchronization object to be used in a standard wait / notify block to be notified when a new
Record
has been made available from the respective IMultiplex |
void |
setWriter(RecordWriter<Record> writer)
Sets the
RecordWriter that will receive the restored Records |
public FirstAvailableDemultiplex()
public void setModificationNotify(Object notify)
Record
has been made available from the respective IMultiplexsetModificationNotify in interface IDemultiplexnotify - the synchronization objectIDemultiplex.setModificationNotify(java.lang.Object)public void setDefinitionsList(ArrayList<RecordDefinition[]> definitionsList)
RecordDefinitions in the order of the managed BufferStoreEntry listsetDefinitionsList in interface IDemultiplexdefinitionsList - the list of record definitionsIDemultiplex.setDefinitionsList(java.util.ArrayList)public void setEntries(ArrayList<BufferStoreEntry> entries)
setEntries in interface IDemultiplexentries - the entries to demultiplexIDemultiplex.setEntries(java.util.ArrayList)public void setWriter(RecordWriter<Record> writer)
RecordWriter that will receive the restored RecordssetWriter in interface IDemultiplexwriter - the writer to store the restored RecordsIDemultiplex.setWriter(gr.uoa.di.madgik.grs.writer.RecordWriter)public void setBufferStore(IBufferStore store)
IBufferStore over which the demultiplexing is performedsetBufferStore in interface IDemultiplexstore - the IBufferStore over which the demultiplexing is performedIDemultiplex.setBufferStore(gr.uoa.di.madgik.grs.store.buffer.IBufferStore)public void dispose()
dispose in interface IDemultiplexIDemultiplex.dispose()public void demultiplex()
throws GRS2BufferStoreException
demultiplex in interface IDemultiplexGRS2BufferStoreException - there was a problem during the demultiplexing procedureIDemultiplex.demultiplex()Copyright © 2014. All Rights Reserved.