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

io.fluxcapacitor.javaclient.publishing.DefaultEventGateway Maven / Gradle / Ivy

There is a newer version: 0.1015.0
Show newest version
package io.fluxcapacitor.javaclient.publishing;

import io.fluxcapacitor.common.Registration;
import io.fluxcapacitor.common.api.Metadata;
import lombok.AllArgsConstructor;

@AllArgsConstructor
public class DefaultEventGateway implements EventGateway {
    private final PublicationGateway delegate;

    @Override
    public void publish(Object event) {
        delegate.sendAndForget(event);
    }

    @Override
    public void publish(Object payload, Metadata metadata) {
        delegate.sendAndForget(payload, metadata);
    }

    @Override
    public Registration registerLocalHandler(Object handler) {
        return delegate.registerLocalHandler(handler);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy