@FunctionalInterface public interface TransmissionService
Typical implementation:
public TransmissionResponse send(InputStream inputStream) throws IOException, OxalisTransmissionException {
TransmissionRequestFactory transmissionRequestFactory = // Fetch or find locally.
TransmissionRequest transmissionRequest = transmissionRequestFactory.newInstance(inputStream);
Transmitter transmitter = // Fetch or find locally.
TransmissionResponse transmissionResponse = transmitter.transmit(transmissionRequest)
return transmissionResponse;
}
| Modifier and Type | Method and Description |
|---|---|
default TransmissionResponse |
send(InputStream inputStream)
Sends content found in the InputStream.
|
default TransmissionResponse |
send(InputStream inputStream,
io.opentracing.Span root)
Sends content found in the InputStream.
|
TransmissionResponse |
send(InputStream inputStream,
Tag tag)
Sends content found in the InputStream.
|
default TransmissionResponse |
send(InputStream inputStream,
Tag tag,
io.opentracing.Span root)
Sends content found in the InputStream.
|
default TransmissionResponse send(InputStream inputStream) throws IOException, OxalisTransmissionException, OxalisContentException
inputStream - InputStream containing content to be sent.IOException - Thrown on any IO exception.OxalisTransmissionException - Thrown if there were any problems making Oxalis unable to send the content.OxalisContentExceptionTransmissionResponse send(InputStream inputStream, Tag tag) throws IOException, OxalisTransmissionException, OxalisContentException
inputStream - InputStream containing content to be sent.tag - Tag defined by client.IOException - Thrown on any IO exception.OxalisTransmissionException - Thrown if there were any problems making Oxalis unable to send the content.OxalisContentExceptiondefault TransmissionResponse send(InputStream inputStream, io.opentracing.Span root) throws IOException, OxalisTransmissionException, OxalisContentException
inputStream - InputStream containing content to be sent.root - Current trace.IOException - Thrown on any IO exception.OxalisTransmissionException - Thrown if there were any problems making Oxalis unable to send the content.OxalisContentExceptiondefault TransmissionResponse send(InputStream inputStream, Tag tag, io.opentracing.Span root) throws IOException, OxalisTransmissionException, OxalisContentException
inputStream - InputStream containing content to be sent.tag - Tag defined by client.root - Current trace.IOException - Thrown on any IO exception.OxalisTransmissionException - Thrown if there were any problems making Oxalis unable to send the content.OxalisContentExceptionCopyright © 2022 NorStella. All rights reserved.