All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.geneea.celery.examples.BadTaskProxy Maven / Gradle / Ivy

There is a newer version: 1.10.4
Show newest version
package com.geneea.celery.examples;

import com.geneea.celery.Celery;

public final class BadTaskProxy {

    private final Celery client;

    private BadTaskProxy(Celery client) {
        this.client = client;
    }

    public static com.geneea.celery.examples.BadTaskProxy with(Celery client) {
        return new com.geneea.celery.examples.BadTaskProxy(client);
    }

    @SuppressWarnings("unchecked")
    public Celery.AsyncResult throwCheckedException(
        ) throws java.io.IOException {

        return (Celery.AsyncResult) client.submit(
                com.geneea.celery.examples.BadTask.class,
                "throwCheckedException",
                new Object[]{
                });
    }
    @SuppressWarnings("unchecked")
    public Celery.AsyncResult throwUncheckedException(
        ) throws java.io.IOException {

        return (Celery.AsyncResult) client.submit(
                com.geneea.celery.examples.BadTask.class,
                "throwUncheckedException",
                new Object[]{
                });
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy