@Override
    public void onCompletion(Result result) {
        if (!result.isSuccessful()) {
            onFailed(result);
            return;
        }
        onSuccess();
    }
Constructor.

@param tx Transaction
@param context Context.
@param event Related event.
inlong-sort-standalone/sort-standalone-source/src/main/java/org/apache/inlong/sort/standalone/sink/cls/ClsCallback.java