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

templates.ResolvedWebhookHandleSpecification.hbs Maven / Gradle / Ivy

There is a newer version: 0.15.3
Show newest version
package {{packageName}};

import io.polyapi.client.api.model.PolyEntity;
import io.polyapi.client.api.model.PolyMetadata;
import io.polyapi.client.api.model.websocket.PolyTrigger;
import io.polyapi.commons.api.model.PolyEventConsumer;
import io.polyapi.commons.api.websocket.Handle;
import java.util.function.Consumer;
import io.polyapi.commons.api.model.PolyGeneratedClass;

/**
 * Poly webhook handler with ID {{id}}.
 */
@PolyEntity("{{id}}")
@PolyMetadata(paramTypes="{{{eventType}}}")
@PolyGeneratedClass
public interface {{className}} extends PolyTrigger {

    Handle handle{{className}}(PolyEventConsumer<{{{eventType}}}> trigger);

    Handle handle{{className}}(Consumer<{{{eventType}}}> trigger);

    void {{name}}(PolyEventConsumer<{{{eventType}}}> trigger);

    void {{name}}(Consumer<{{{eventType}}}> trigger);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy