public interface EventHandler
| 限定符和类型 | 方法和说明 |
|---|---|
void |
onErrors(Exception errors)
try onEvent(InternalEvent) exceptions
|
void |
onEvent(Object event)
Process event message
|
int |
scheduleType()
Tell your schedule type to Dispatcher.Schedule
|
void onEvent(Object event) throws Exception
event - Event messageException - Impl can throw exceptionsvoid onErrors(Exception errors)
errors - Exceptionint scheduleType()