package com.transloadit.sdk;

import com.transloadit.sdk.response.AssemblyResponse;

public interface AssemblyListener {
    /**
     * Callback to be executed when the Assembly execution is done executing.
     * This encompasses any kind of termination of the assembly.
     * Including when the assembly aborts due to failure.
     *
     * @param response {@link AssemblyResponse} response with the updated status of the assembly.
     */
    void onAssemblyFinished(AssemblyResponse response);

    void onError(Exception error);
}

@@ -493,16 +493,262 @@
 onse);%0A%0A
+    /**%0A     * Callback to be executed if the socket connection throws an Error.%0A     * This encompasses any kind of termination of the assembly.%0A     *%0A     * @param error %7B@link Exception%7D the error thrown during the socket connection.%0A     */%0A
     void

document AssemblyListener interface methods