public interface IPacketReferenceStore
Modifier and Type | Method and Description |
---|---|
void |
add(IRecorderPacketReference ref,
long minPendingPacketTime)
Adds a packet reference.
|
void |
complete()
Completes this store.
|
void |
dispose()
Disposes this store.
|
void |
flush(IPacketReferenceOutputStream outputStream,
long minPendingPacketTime)
Completes this store if this is not already done, and sends its content to
the specified stream.
|
IPacketStoreIterator |
iterator()
Returns an iterator that allows to iterate through the list of packet
references that were added to this store, in the same order as they were added.
|
int |
size()
Returns the count of packet references in the store.
|
void add(IRecorderPacketReference ref, long minPendingPacketTime) throws IOException
ref
- A packet reference.minPendingPacketTime
- The lowest start time of all packets that
may be added to this packet store after this packet is added.IOException
- If the packet could not be stored (usually because there is no
more disk space), or if this store has already been completed.int size()
void complete() throws IOException
IOException
- If a disk-related problem occurred.void dispose()
void flush(IPacketReferenceOutputStream outputStream, long minPendingPacketTime) throws IOException
outputStream
- The output stream where packets should be written to.minPendingPacketTime
- The lowest start time of all packets that
may be sent to the output after the store content is flushed.IOException
IPacketStoreIterator iterator() throws IOException
IOException
© Copyright IBM Corp. 2013. All rights reserved.