|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgr.uoa.di.madgik.grs.proxy.mirror.PartialRequestManager
public class PartialRequestManager
This class acts as a manager that can be used by reader side IMirror
implementations to handle
the requests for additional payload issued against Record
s and Field
s that have been transfered
partially.
Constructor Summary | |
---|---|
PartialRequestManager()
|
Method Summary | |
---|---|
void |
block(long recordIndex,
int fieldIndex,
IBuffer.TransportOverride override,
java.lang.Object notify)
This method is used to add one new request to the ones that are pending data to be made available |
void |
dispose()
Disposes all internal resources and notifies all the waiting requesters |
PartialRequestEntry[] |
getEntries()
Retrieves a new copy of the entries that are pending |
boolean |
requestExists(long recordIndex,
int fieldIndex)
Checks whether a request for the specific Record and Field is already pending |
void |
unblock(long recordIndex,
int fieldIndex)
data has been made available for the provided Record and Field . |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PartialRequestManager()
Method Detail |
---|
public void block(long recordIndex, int fieldIndex, IBuffer.TransportOverride override, java.lang.Object notify) throws GRS2ProxyMirrorDisposedException, GRS2ProxyMirrorInvalidOperationException
recordIndex
- the Record
index the request is issued againstfieldIndex
- the Record
's Field
that should transfer more dataoverride
- the IBuffer.TransportOverride
directive to usenotify
- the synchronization object used to block and notify the requester
GRS2ProxyMirrorDisposedException
- The mirroring procedure has already been terminated
GRS2ProxyMirrorInvalidOperationException
- A request against the specific Record
and Field
has already been issued and an new one cannot be maid until the previous one is servedpublic void unblock(long recordIndex, int fieldIndex) throws GRS2ProxyMirrorDisposedException, GRS2ProxyMirrorInvalidOperationException
Record
and Field
. This method
will use the respective synchronization object to notify the requester and remove the
served request
recordIndex
- the Record
index the request is issued againstfieldIndex
- the Record
's Field
that transfered more data
GRS2ProxyMirrorDisposedException
- The mirroring procedure has already been terminated
GRS2ProxyMirrorInvalidOperationException
- No request fore the given Record
and Field
can be foundpublic boolean requestExists(long recordIndex, int fieldIndex) throws GRS2ProxyMirrorDisposedException
Record
and Field
is already pending
recordIndex
- the Record
indexfieldIndex
- the Field
index
GRS2ProxyMirrorDisposedException
- The mirroring procedure has already been terminatedpublic PartialRequestEntry[] getEntries()
public void dispose()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |