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

com.fireflysource.common.actor.Actor Maven / Gradle / Ivy

There is a newer version: 5.0.2
Show newest version
package com.fireflysource.common.actor;

/**
 * The actor interface.
 *
 * @param  The actor message type.
 */
public interface Actor {

    /**
     * Get actor id.
     *
     * @return The actor id.
     */
    String getAddress();

    /**
     * Send message to this actor.
     *
     * @param message The message.
     * @return If true, send message success.
     */
    boolean send(T message);

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy