Modifier and Type | Method and Description |
---|---|
void |
add(Sample<IT_DATA> o) |
void |
close()
This operation indicates to that the application is done accessing
the list of Samples obtained by some earlier invocation of
DataReader.read() or DataReader.take() . |
void |
remove() |
void |
set(Sample<IT_DATA> o) |
void close() throws java.io.IOException
DataReader.read()
or DataReader.take()
.
The operation allows implementations to "loan" buffers from the
DataReader to the application and in this manner provide
"zero-copy" access to the data. During the loan, the DataReader
will guarantee that the data and sample information are not
modified.
It is not necessary for an application to return the loans
immediately after the read or take calls. However, as these
buffers correspond to internal resources inside the DataReader,
the application should not retain them indefinitely.
The use of the operation is only necessary if the read or take
calls "loaned" buffers to the application. The situations in which
this occurs are described in the documentation for
DataReader.read()
and DataReader.take()
. However,
calling close on a collection that does not have a loan is
safe and has no side effects.close
in interface java.lang.AutoCloseable
close
in interface java.io.Closeable
java.io.IOException
DataReader.read()
,
DataReader.take()
void remove()
Copyright © 2010 Real-Time Innovations, Inc. (RTI)
Copyright © 2010 PrismTech, Ltd.
Copyright © 2010 Object Management Group, Inc. (OMG)
All Rights Reserved.