Class MetricsSendingInterceptor
java.lang.Object
io.quarkus.websockets.next.runtime.telemetry.MetricsSendingInterceptor
- All Implemented Interfaces:
SendingInterceptor
-
Constructor Summary
ConstructorsConstructorDescriptionMetricsSendingInterceptor(io.micrometer.core.instrument.Counter onMessageSentCounter, io.micrometer.core.instrument.Counter onMessageSentBytesCounter) -
Method Summary
Modifier and TypeMethodDescriptionvoidonSend(io.vertx.core.buffer.Buffer message) Intercept sent binary messages, corresponds to theWebSocketConnectionBase.sendBinary(Buffer)method.voidIntercept sent text messages, corresponds to theWebSocketConnectionBase.sendText(String)method.
-
Constructor Details
-
MetricsSendingInterceptor
MetricsSendingInterceptor(io.micrometer.core.instrument.Counter onMessageSentCounter, io.micrometer.core.instrument.Counter onMessageSentBytesCounter)
-
-
Method Details
-
onSend
Description copied from interface:SendingInterceptorIntercept sent text messages, corresponds to theWebSocketConnectionBase.sendText(String)method.- Specified by:
onSendin interfaceSendingInterceptor- Parameters:
text- sent text message
-
onSend
public void onSend(io.vertx.core.buffer.Buffer message) Description copied from interface:SendingInterceptorIntercept sent binary messages, corresponds to theWebSocketConnectionBase.sendBinary(Buffer)method.- Specified by:
onSendin interfaceSendingInterceptor- Parameters:
message- sent binary message
-