Package gov.usgs.earthquake.distribution
Interface WebSocketListener
-
- All Known Implementing Classes:
AwsProductReceiver
,WebSocketNotificationReceiver
public interface WebSocketListener
Allows overridden onMessage for different behavior of WebSocketClient onMessage
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
onClose(javax.websocket.Session session, javax.websocket.CloseReason closeReason)
Interface method to be overriden by WebSocket files and AwsProductReceivervoid
onConnectFail()
Interface method to be overriden by WebSocket files and AwsProductReceivervoid
onMessage(java.lang.String message)
Interface method to be overriden by WebSocket files and AwsProductReceivervoid
onOpen(javax.websocket.Session session)
Interface method to be overriden by WebSocket files and AwsProductReceivervoid
onReconnectFail()
Interface method to be overriden by WebSocket files and AwsProductReceiver
-
-
-
Method Detail
-
onOpen
void onOpen(javax.websocket.Session session) throws java.io.IOException
Interface 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.IOException
Interface 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.IOException
Interface 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.IOException
Interface method to be overriden by WebSocket files and AwsProductReceiver- Throws:
java.io.IOException
- IOException
-
onReconnectFail
void onReconnectFail() throws java.io.IOException
Interface method to be overriden by WebSocket files and AwsProductReceiver- Throws:
java.io.IOException
- IOException
-
-