public interface AsyncDataSender
AsyncStreamingService.openAsyncStream(String, String, AsyncDataReceiver)
and provides methods for sending of data to the remote peer of the active async stream.| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes this stream for sending.
|
void |
close(java.lang.String errorMessage)
Terminates this stream completely (both for sending and for receiving).
|
void |
send(java.nio.ByteBuffer buffer)
Sends a data chunk over this stream.
|
void |
send(java.nio.ByteBuffer buffer,
boolean lastOne)
Sends a data chunk over this stream.
|
void send(java.nio.ByteBuffer buffer) throws java.io.IOException
buffer - the data chunk which will be send over the streamjava.io.IOExceptionvoid send(java.nio.ByteBuffer buffer,
boolean lastOne)
throws java.io.IOException
buffer - the data chunk which will be send over the streamlastOne - if true then this stream will be closed for sending.java.io.IOExceptionvoid close()
AsyncDataReceiver.handleClose() method is called.void close(java.lang.String errorMessage)
errorMessage - The reson for abnormal termination of the stream.Copyright © 2019 Bosch Software Innovations GmbH. All Rights Reserved.