eu.lucaventuri.fibry.PartialActor Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of fibry Show documentation
Show all versions of fibry Show documentation
The first Java Actor System supporting fibers from Project Loom
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