com.fireflysource.common.actor.Actor Maven / Gradle / Ivy
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 - 2025 Weber Informatics LLC | Privacy Policy