public interface IMirror
IMirror implementations is to provide a means of
synchronization between the IBuffer that is authored by a writer and the respective IBuffer
available to the reader. The way the synchronization is performed and the technologies employed is
entirely up to the implementation to be specified and the respective IProxy, IReaderProxy
and IWriterProxy.| Modifier and Type | Interface and Description |
|---|---|
static class |
IMirror.MirroringState
The status of the mirroring procedure
|
| Modifier and Type | Method and Description |
|---|---|
void |
dispose()
Dispose the resources employed by the mirroring implementations
|
IBuffer |
getBuffer()
|
boolean |
pollPartial(long recordIndex,
int fieldIndex) |
long |
requestPartial(long recordIndex,
int fieldIndex,
IBuffer.TransportOverride override,
Object notify)
This method is used by the reader side mirror to request payload that belongs to an
IBuffer
item that has been transfered only partially and more data is requested by the reader client |
void dispose()
IBuffer getBuffer()
long requestPartial(long recordIndex,
int fieldIndex,
IBuffer.TransportOverride override,
Object notify)
throws GRS2ProxyMirrorException
IBuffer
item that has been transfered only partially and more data is requested by the reader clientrecordIndex - The index of the record whose payload is requested. As described in Record, this index coincides with the record id.fieldIndex - The index of the field belonging to the defined record for which additional data is requestedoverride - whether or not the field's IBuffer.TransportDirective should be overridden as explained in IBuffernotify - A synchronization object that can be used for the requester to block on until the required data is providedpollPartial(long, int) should be usedGRS2ProxyMirrorException - The status of the IMirror does not allow this operation to be completedboolean pollPartial(long recordIndex,
int fieldIndex)
throws GRS2ProxyMirrorException
recordIndex - The record index / id, for which the requester has requested data to be deliveredfieldIndex - The field index of the specific record for which data are requestedGRS2ProxyMirrorException - The status of the IMirror does not allow this operation to be completedCopyright © 2014. All Rights Reserved.