- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
An application can implement this interface to receive notifications when a connection closes.
-
Method Summary
Modifier and TypeMethodDescriptionvoidclosed(Connection con) This method is called by the connection when it is closed.
-
Method Details
-
closed
This method is called by the connection when it is closed. If the callback needs more information about the closure, it can callConnection.throwException().- Parameters:
con- the connection that closed
-