Interface WebSocketMetricsInterceptorProducer.WebSocketMetricsInterceptor
- Enclosing interface:
WebSocketMetricsInterceptorProducer
public static interface WebSocketMetricsInterceptorProducer.WebSocketMetricsInterceptor
-
Method Summary
Modifier and TypeMethodDescriptionvoidonConnectionClosed(String route) Called when a WebSocket connection is opened.voidonConnectionOpened(String route) Called when a WebSocket connection is opened.voidonConnectionOpeningFailed(String route) Called when an opening of a WebSocket connection failed.voidCalled when errors described by the 'OnError' annotation occur.voidonMessageReceived(byte[] data, String route) Called every time an inbound binary or text message is received.voidonMessageSent(byte[] data, String route) Called every time an outbound binary or text message is sent.
-
Method Details
-
onError
Called when errors described by the 'OnError' annotation occur.- Parameters:
route- endpoint route
-
onMessageSent
Called every time an outbound binary or text message is sent.- Parameters:
data- sent dataroute- endpoint route
-
onMessageReceived
Called every time an inbound binary or text message is received.- Parameters:
data- received dataroute- endpoint route
-
onConnectionOpened
Called when a WebSocket connection is opened.- Parameters:
route- endpoint route
-
onConnectionOpeningFailed
Called when an opening of a WebSocket connection failed.- Parameters:
route- endpoint route
-
onConnectionClosed
Called when a WebSocket connection is opened.- Parameters:
route- endpoint route
-