Class RAFCircularBuffer<T extends Serializable>
java.lang.Object
com.inductiveautomation.ignition.common.util.RAFCircularBuffer<T>
A persistent circular buffer system that uses a 
RandomAccessFile as the backing store.- 
Nested Class SummaryNested Classes
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionDeprecated.Deprecated.voidclose()protected TdeserializeObject(InputStream stream) voidexportBuffer(OutputStream outputStream) longiterateBackward(RAFCircularBuffer.Filter<? super T> filter) iterateForward(RAFCircularBuffer.Filter<T> filter) static voidvoidreset()protected voidserializeObject(T object, OutputStream stream) Gives subclasses the chance to affect how data is written.void
- 
Constructor Details- 
RAFCircularBuffer- Parameters:
- file- The file to use as the buffer
- sizeInKB- must be at least 1
- gzip- A flag for whether or not new records should be stored with Gzip compression
- Throws:
- IOException
 
 
- 
- 
Method Details- 
resetpublic void reset()
- 
getFileSize- Throws:
- IOException
 
- 
exportBuffer- Throws:
- IOException
 
- 
serializeObjectGives subclasses the chance to affect how data is written. The provided stream will already be a GZIPOuputStream, if appropriate, and should not be closed in this function.- Throws:
- IOException
 
- 
deserializeObject- Throws:
- IOException
- ClassNotFoundException
 
- 
write- Throws:
- IOException
 
- 
close- Throws:
- IOException
 
- 
iterateForward
- 
iterateBackward
- 
_forwardIterDeprecated.Do not use directly, not thread safe. Used for junit testing
- 
_backwardIterDeprecated.Do not use directly, not thread safe. Used for junit testing
- 
main
 
-