X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Fnet%2Fpterodactylus%2Futil%2Ffcp%2FFcpListener.java;fp=src%2Fnet%2Fpterodactylus%2Futil%2Ffcp%2FFcpListener.java;h=eafb5aaf43a6a329b2c7463ef0c1cb4e6d453eed;hb=8064631576fc52669f2f5efb28235d32f39407a6;hp=65baa36150cc02490b01c5003e4cb4a8b5cbc386;hpb=5b75165eccde5118cf88161d66a926617d64e6e4;p=jSite2.git diff --git a/src/net/pterodactylus/util/fcp/FcpListener.java b/src/net/pterodactylus/util/fcp/FcpListener.java index 65baa36..eafb5aa 100644 --- a/src/net/pterodactylus/util/fcp/FcpListener.java +++ b/src/net/pterodactylus/util/fcp/FcpListener.java @@ -394,4 +394,14 @@ public interface FcpListener extends EventListener { */ public void receivedMessage(FcpConnection fcpConnection, FcpMessage fcpMessage); + /** + * Notifies a listener that a connection was closed. A closed connection can + * be reestablished by calling {@link FcpConnection#connect()} on the same + * object again. + * + * @param fcpConnection + * The connection that was closed. + */ + public void connectionClosed(FcpConnection fcpConnection); + }