|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
T
- type of Record which can be receivedpublic interface RecordAsyncReceiver<T>
Asynchronously receives records sent from a RecordSender.
Nested Class Summary | |
---|---|
static interface |
RecordAsyncReceiver.RecordHandler<T>
A RecordHandler is used by the RecordAsyncReceiver to handle the Records it receives. |
Method Summary | |
---|---|
void |
pause()
Pauses the RecordAsyncReceiver. |
void |
resume()
Resumes a paused RecordAsyncReceiver. |
void |
setRecordHandler(RecordAsyncReceiver.RecordHandler<T> handler)
Sets the RecordHandler used to handle incoming Records. |
void |
start()
Starts the PollingService. |
void |
stop()
Completely stops a RecordAsyncReceiver. |
void |
unsetRecordHandler()
Removes the current RecordHandler. |
Method Detail |
---|
void setRecordHandler(RecordAsyncReceiver.RecordHandler<T> handler)
handler
- the RecordHandler to setvoid unsetRecordHandler()
void start() throws IllegalStateException
IllegalStateException
- if no message handler is setvoid pause()
void resume()
void stop()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |