public interface IReaderProxy extends IProxy
IProxy specialization that needs to be implemented by the proxy implementations
that are used by reader clientsIProxy.ProxyTypeProxyScheme, ProxyStoreScheme| Modifier and Type | Method and Description |
|---|---|
void |
fromLocator(URI locator)
Populates an instance of the
IReaderProxy implementer with the information
provided through the specific locator URI |
IBuffer |
getBuffer()
|
void |
overrideBufferCapacity(int capacity)
After the proxy has been initialized, this method can be used to provide a hint to the
IReaderProxy to use a capacity different than that of the producer's buffer. |
void fromLocator(URI locator) throws GRS2ProxyException
IReaderProxy implementer with the information
provided through the specific locator URIlocator - GRS2ProxyException - The proxy initialization could not be completedvoid overrideBufferCapacity(int capacity)
throws GRS2ProxyException
IReaderProxy to use a capacity different than that of the producer's buffer.
Whether or not this hint is taken into account depends on the IReaderProxy implementation.
For example, it is highly unlikely that it will be honored in cases when both the producer and
the consumer run into the same address space.capacity - GRS2ProxyException - The capacity of the buffer cannot be overridenGRS2ProxyExceptionIBuffer getBuffer() throws GRS2ProxyException
IBuffer that
can be used by the reader to access the writer side IBuffer can be retrievedIBuffer that is serving the readerGRS2ProxyException - the IBuffer could not be retrievedCopyright © 2014. All Rights Reserved.