package de.bornemisza.loadbalancer;

public class ClusterEvent {

    private final String hostname;
    private final ClusterEventType type;

    public enum ClusterEventType {
        HOST_APPEARED, HOST_DISAPPEARED, HOST_HEALTHY, HOST_UNHEALTHY
    }

    public ClusterEvent(String hostname, ClusterEventType type) {
        this.hostname = hostname;
        this.type = type;
    }

    public String getHostname() {
        return hostname;
    }

    public ClusterEventType getType() {
        return type;
    }

}

@@ -34,35 +34,143 @@
 r;%0A%0A
-public class ClusterEvent %7B
+import java.io.Serializable;%0A%0Apublic class ClusterEvent implements Serializable %7B%0A%0A    private static final long serialVersionUID = 1L;
 %0A%0A  

make it serializable