Package gov.usgs.earthquake.distribution
Interface WebSocketListener
-
- All Known Implementing Classes:
AwsProductReceiver,WebSocketNotificationReceiver
public interface WebSocketListenerAllows overridden onMessage for different behavior of WebSocketClient onMessage
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidonClose(javax.websocket.Session session, javax.websocket.CloseReason closeReason)Interface method to be overriden by WebSocket files and AwsProductReceivervoidonConnectFail()Interface method to be overriden by WebSocket files and AwsProductReceivervoidonMessage(java.lang.String message)Interface method to be overriden by WebSocket files and AwsProductReceivervoidonOpen(javax.websocket.Session session)Interface method to be overriden by WebSocket files and AwsProductReceivervoidonReconnectFail()Interface method to be overriden by WebSocket files and AwsProductReceiver
-
-
-
Method Detail
-
onOpen
void onOpen(javax.websocket.Session session) throws java.io.IOExceptionInterface method to be overriden by WebSocket files and AwsProductReceiver- Parameters:
session- Session to open- Throws:
java.io.IOException- IOException
-
onMessage
void onMessage(java.lang.String message) throws java.io.IOExceptionInterface method to be overriden by WebSocket files and AwsProductReceiver- Parameters:
message- String message- Throws:
java.io.IOException- IOException
-
onClose
void onClose(javax.websocket.Session session, javax.websocket.CloseReason closeReason) throws java.io.IOExceptionInterface method to be overriden by WebSocket files and AwsProductReceiver- Parameters:
session- Session to closecloseReason- Reason for closing session- Throws:
java.io.IOException- IOException
-
onConnectFail
void onConnectFail() throws java.io.IOExceptionInterface method to be overriden by WebSocket files and AwsProductReceiver- Throws:
java.io.IOException- IOException
-
onReconnectFail
void onReconnectFail() throws java.io.IOExceptionInterface method to be overriden by WebSocket files and AwsProductReceiver- Throws:
java.io.IOException- IOException
-
-