public interface DisconnectListener
When disconnect or remove is fired (because the user has either selected disconnect or delete for that connection) we will by default disconnect all live connections to the database that have been created with the DatabaseConnections layer.
The user must have requested a disconnect/remove in the first place for this to be called so in general disconnect should always be allowed.
In cases where the disconnect will cause errors, the user should be prompted to terminate whatever is running (e.g. a sql script or debug session) and, only if they say no should the disconnect be blocked.
|Modifier and Type||Method and Description|
This allows a listener to veto a disconnect by returning false.
This is called on all listeners after a successful disconnect of the connection.
boolean canDisconnect(ConnectionsEvent event)
event- the connection event describing the connection to be disconnected.
void connectionDisconnected(ConnectionsEvent event)
event- the connection event describing the connection that has been disconnected.