X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Fnet%2Fpterodactylus%2Futil%2Ffcp%2FFcpListener.java;h=eafb5aaf43a6a329b2c7463ef0c1cb4e6d453eed;hb=ebd531bc775036dd66a7e20abebbcb480af35491;hp=bbd0e00c41159835a8361c4dd0b61a52c22fa21f;hpb=7cb4b419a0fb39141c6e1bf3807205dcdce2adcc;p=jSite2.git diff --git a/src/net/pterodactylus/util/fcp/FcpListener.java b/src/net/pterodactylus/util/fcp/FcpListener.java index bbd0e00..eafb5aa 100644 --- a/src/net/pterodactylus/util/fcp/FcpListener.java +++ b/src/net/pterodactylus/util/fcp/FcpListener.java @@ -363,6 +363,16 @@ public interface FcpListener extends EventListener { public void receivedPutSuccessful(FcpConnection fcpConnection, PutSuccessful putSuccessful); /** + * Notifies a listener that a “PutFetchable” message was received. + * + * @param fcpConnection + * The connection that received the message + * @param putFetchable + * The “PutFetchable” message + */ + public void receivedPutFetchable(FcpConnection fcpConnection, PutFetchable putFetchable); + + /** * Notifies a listener that a “ProtocolError” was received. * * @param fcpConnection @@ -384,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); + }