Interface LostConnectionListener
-
- All Superinterfaces:
GloballyAttachableListener
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface LostConnectionListener extends GloballyAttachableListener
This listener listens to lost connections. This listener is called, when the websocket loses its connection. Don't panic! It's totally normal for the websocket to occasionally lose the connection. In most cases it's possible to resume the session without missing any events!
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidonLostConnection(LostConnectionEvent event)This method is called every time a connection is lost.
-
-
-
Method Detail
-
onLostConnection
void onLostConnection(LostConnectionEvent event)
This method is called every time a connection is lost.- Parameters:
event- The event.
-
-