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

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

There is a newer version: 1.0.5
Show newest version
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