Package network.oxalis.api.outbound
Interface MessageSender
-
- 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 MessageSender
MessageSender is implemented by a specific protocol implementation.- Since:
- 4.0.0
- Author:
- steinar, erlend
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description TransmissionResponsesend(TransmissionRequest transmissionRequest)Protocol specific transmission of transmission requested.default TransmissionResponsesend(TransmissionRequest transmissionRequest, io.opentracing.Span root)Protocol specific transmission of transmission requested.
-
-
-
Method Detail
-
send
TransmissionResponse send(TransmissionRequest transmissionRequest) throws OxalisTransmissionException
Protocol specific transmission of transmission requested. (Without tracing.)- Parameters:
transmissionRequest- Requested transmission to take place.- Returns:
- Response content of a successful transmission.
- Throws:
OxalisTransmissionException- Thrown when transmission was not sent according to protocol specific rules or because something went wrong during transmission.
-
send
default TransmissionResponse send(TransmissionRequest transmissionRequest, io.opentracing.Span root) throws OxalisTransmissionException
Protocol specific transmission of transmission requested. (With tracing.)- Parameters:
transmissionRequest- Requested transmission to take place.root- Current trace.- Returns:
- Response content of a successful transmission.
- Throws:
OxalisTransmissionException- Thrown when transmission was not sent according to protocol specific rules or because something went wrong during transmission.
-
-