
co.paralleluniverse.actors.behaviors.EventSource Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of quasar-actors Show documentation
Show all versions of quasar-actors Show documentation
lightweight threads and actors for the JVM.
The newest version!
/*
* Quasar: lightweight threads and actors for the JVM.
* Copyright (c) 2013-2014, Parallel Universe Software Co. All rights reserved.
*
* This program and the accompanying materials are dual-licensed under
* either the terms of the Eclipse Public License v1.0 as published by
* the Eclipse Foundation
*
* or (per the licensee's choosing)
*
* under the terms of the GNU Lesser General Public License version 3.0
* as published by the Free Software Foundation.
*/
package co.paralleluniverse.actors.behaviors;
import co.paralleluniverse.actors.ActorRef;
import static co.paralleluniverse.actors.behaviors.RequestReplyHelper.call;
import co.paralleluniverse.fibers.SuspendExecution;
/**
* An interface to an {@link EventSourceActor}.
*
* @author pron
*/
public class EventSource extends Behavior {
/**
* If {@code actor} is known to be a {@link EventSourceActor}, creates a new {@link EventSource} interface to it.
* Normally, you don't use this constructor, but the {@code EventSource} instance returned by {@link EventSourceActor#spawn() }.
*
* @param actor an {@link EventSourceActor}
*/
EventSource(ActorRef
© 2015 - 2025 Weber Informatics LLC | Privacy Policy