public interface AsyncDataReceiver
| Modifier and Type | Method and Description |
|---|---|
void |
handleClose()
Called when remote peer has finished sending its data over this stream.
|
void |
handleClose(java.lang.String error)
Called when the stream is interrupted abnormally.
|
void |
handleData(java.nio.ByteBuffer buffer)
Called when a new chunk of data is received from the remote peer.
|
void handleData(java.nio.ByteBuffer buffer)
buffer - the chunk of datavoid handleClose()
handleData(ByteBuffer) method. The other
direction of the stream may still be active (unless/until) the application calls
{@link AsyncDataSender#close()) method.void handleClose(java.lang.String error)
error - the reason for abnormal stream closure.Copyright © 2019 Bosch Software Innovations GmbH. All Rights Reserved.