fi.jumi.core.events.StartableEventizer Maven / Gradle / Ivy
package fi.jumi.core.events;
import fi.jumi.actors.eventizers.Event;
import fi.jumi.actors.eventizers.Eventizer;
import fi.jumi.actors.queue.MessageSender;
import fi.jumi.core.events.startable.*;
import fi.jumi.core.util.Startable;
public class StartableEventizer implements Eventizer {
public Class getType() {
return Startable.class;
}
public Startable newFrontend(MessageSender> target) {
return new StartableToEvent(target);
}
public MessageSender> newBackend(Startable target) {
return new EventToStartable(target);
}
}