Made Event and its implementations serializable

This commit is contained in:
Kai S. K. Engelbart 2020-01-28 17:50:09 +01:00
parent aed8016485
commit 8ab72b7a76
3 changed files with 7 additions and 1 deletions

View File

@ -1,5 +1,7 @@
package envoy.event;
import java.io.Serializable;
/**
* Project: <strong>envoy-common</strong><br>
* File: <strong>Event.java</strong><br>
@ -9,7 +11,7 @@ package envoy.event;
* @param <T> the type of the Event
* @since Envoy v0.2-alpha
*/
public interface Event<T> {
public interface Event<T> extends Serializable {
/**
* @return the data associated with this event

View File

@ -11,4 +11,6 @@ package envoy.event;
* @author Kai S. K. Engelbart
*/
public class IdGeneratorRequest implements Event<Void> {
private static final long serialVersionUID = 1431107413883364583L;
}

View File

@ -18,6 +18,8 @@ public class MessageStatusChangeEvent implements Event<Message.MessageStatus> {
private final Message.MessageStatus status;
private final Date date;
private static final long serialVersionUID = 4566145392192761313L;
/**
* Initializes a {@link MessageStatusChangeEvent}.
*