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

eu.lucaventuri.fibry.PartialActor Maven / Gradle / Ivy

There is a newer version: 3.0.1
Show newest version
package eu.lucaventuri.fibry;

import eu.lucaventuri.common.ExtendedClosable;
import eu.lucaventuri.common.Stateful;

import java.util.function.Consumer;

/** Limited actor */
public interface PartialActor  extends Stateful, Consumer, ExtendedClosable {
    PartialActor sendMessage(T message);
    void execAsync(Consumer> worker);
    void execAsync(Runnable worker);
    boolean sendPoisonPill();
    void askExit();
    boolean isExiting();

    @Override
    default void accept(T message) {
        sendMessage(message);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy