Package com.zeroc.Ice
Interface CloseCallback
- 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 TypeMethodDescriptionvoid
closed
(Connection con) This method is called by the the connection when the connection is closed.
-
Method Details
-
closed
This method is called by the the connection when the connection is closed. If the callback needs more information about the closure, it can callConnection.throwException()
.- Parameters:
con
- The connection that closed.
-