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

org.artifact.actor.MessageEvent Maven / Gradle / Ivy

package org.artifact.actor;

import java.util.EventObject;

/**
 * Sent when a message is received. 
 * 
 * @author BFEIGENB
 *
 */
public class MessageEvent extends EventObject {

	/**
	 * Possible message events. 
	 * 
	 * @author BFEIGENB
	 *
	 */
	public static enum MessageStatus {SENT, DELIVERED, COMPLETED, FAILED};
	
	protected MessageStatus status;
	protected Message message;
	
	public MessageStatus getStatus() {
		return status;
	}

	public MessageEvent(Object source, Message m, MessageStatus status) {
		super(source);
		this.message = m;
		this.status = status;
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy