@@ -0,0 +1,693 @@
+package edu.ouc.async.event;%0D%0A%0D%0A%0D%0A/**%0D%0A * Event type%0D%0A * %0D%0A * @author wqx%0D%0A *%0D%0A */%0D%0Apublic enum EventType %7B%0D%0A%09NULL(0,%22%22),%0D%0A%09SUCCESS(1,%22process success%22),%0D%0A%09TIMEOUT(2,%22task process timeout%22),%0D%0A%09ERROR(3, %22Internal error%22);%0D%0A%09%0D%0A%09EventType(int value, String desc)%7B%0D%0A%09%09this.value = value;%0D%0A%09%09this.desc = desc;%0D%0A%09%7D%0D%0A%09%0D%0A%09private final int value;%0D%0A%09%0D%0A%09private final String desc;%0D%0A%0D%0A%09public int getValue() %7B%0D%0A%09%09return value;%0D%0A%09%7D%0D%0A%09public String getDesc() %7B%0D%0A%09%09return desc;%0D%0A%09%7D%0D%0A%0D%0A    public EventType genEnumByValue(int intValue) %7B%0D%0A        for (EventType item: EventType.values()) %7B%0D%0A            if (item.value == intValue)%0D%0A                return item;%0D%0A        %7D%0D%0A        return NULL;%0D%0A    %7D%0D%0A%09%0D%0A%7D%0D%0A

add EventType