|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface SynchRef
A SynchRef is an interface which is returned from the synchronous take and drain methods of BatchSynchQueue
,
allowing call-backs to be made against the synchronizing strucutre. It allows the consumer to communicate when it
wants producers that have their data taken to be unblocked.
Responsibilities |
---|
Report number of records returned by a taking operation. |
Provide call-back to release producers of taken records. |
Method Summary | |
---|---|
int |
getNumRecords()
Reports the number of records taken by the take or drain operation. |
void |
unblockProducers()
Any producers that have had their data elements taken from the queue but have not been unblocked are unblocked when this method is called. |
Method Detail |
---|
int getNumRecords()
void unblockProducers()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |