Package network.oxalis.api.outbound
Interface Transmitter
-
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface Transmitter
Interface defining contract of Transmitter. A transmitter instance is multi-protocol, and transmits content of transmission request based on requested transport profile.- Since:
- 4.0.0
- Author:
- steinar Date: 18.11.2016 Time: 16.21, erlend
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description TransmissionResponsetransmit(TransmissionMessage transmissionMessage)Transmit content of transmission request.default TransmissionResponsetransmit(TransmissionMessage transmissionMessage, io.opentracing.Span root)Transmit content of transmission request.
-
-
-
Method Detail
-
transmit
TransmissionResponse transmit(TransmissionMessage transmissionMessage) throws OxalisTransmissionException
Transmit content of transmission request. (No tracing.)- Parameters:
transmissionMessage- Content to be transmitted.- Returns:
- Result of transmission.
- Throws:
OxalisTransmissionException- Thrown when transmission fails.
-
transmit
default TransmissionResponse transmit(TransmissionMessage transmissionMessage, io.opentracing.Span root) throws OxalisTransmissionException
Transmit content of transmission request. (With tracing.)- Parameters:
transmissionMessage- Content to be transmitted.root- Current trace.- Returns:
- Result of transmission.
- Throws:
OxalisTransmissionException- Thrown when transmission fails.
-
-