public class Event extends Object
Modifier and Type | Class and Description |
---|---|
static class |
Event.EventName
事件名称枚举
|
Constructor and Description |
---|
Event()
构造函数
|
Event(IoSession session,
Event.EventName name,
Object other)
构造函数
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
static Event |
getInstance(IoSession session,
Event.EventName name,
Object other)
活的新的实例
|
Event.EventName |
getName() |
Object |
getOther() |
IoSession |
getSession() |
int |
hashCode() |
void |
init(IoSession session,
Event.EventName name,
Object other)
构造函数
|
void |
setName(Event.EventName name) |
void |
setOther(Object other) |
void |
setSession(IoSession session) |
public Event()
public Event(IoSession session, Event.EventName name, Object other)
session
- 会话对象name
- 事件名other
- 附加对象public void init(IoSession session, Event.EventName name, Object other)
session
- 会话对象name
- 事件名other
- 附加对象public IoSession getSession()
public void setSession(IoSession session)
public Event.EventName getName()
public void setName(Event.EventName name)
public Object getOther()
public void setOther(Object other)
public static Event getInstance(IoSession session, Event.EventName name, Object other)
session
- Session 对象name
- 事件名称other
- 附属对象Copyright © 2020 Voovan. All rights reserved.