public interface ILogSender
| Modifier and Type | Method and Description |
|---|---|
void |
configure(LogSenderSettings logSenderSettings,
ILogMonitor logMonitor)
Configures this sender.
|
void |
send(byte[] message)
Creates connection and sends given data by HTTP request.
|
void configure(LogSenderSettings logSenderSettings, ILogMonitor logMonitor)
LogController when all parameters are determined.
This method should be idempotent.
Method send(byte[]) cannot be called without foregoing configuration.
logSenderSettings - LogSenderSettings instance.logMonitor - ILogMonitor used for diagnostics and error handling.void send(byte[] message)
ILogMonitor methods pointing what's the request data and HTTP response result.message - Data to send in HTTP request content.java.lang.RuntimeException - On connection error.