public class EventTrigger extends Object
Constructor and Description |
---|
EventTrigger() |
Modifier and Type | Method and Description |
---|---|
static void |
fire(IoSession session,
Event.EventName name,
Object other)
事件触发
根据事件启动 EventThread 来处理事件
|
static void |
fireAccept(IoSession session) |
static void |
fireAcceptAsync(IoSession session) |
static void |
fireConnect(IoSession session) |
static void |
fireConnectAsync(IoSession session) |
static void |
fireDisconnect(IoSession session) |
static void |
fireDisconnectAsync(IoSession session) |
static void |
fireEvent(IoSession session,
Event.EventName name,
Object other)
事件触发
根据事件启动 EventThread 来处理事件
|
static void |
fireException(IoSession session,
Exception exception) |
static void |
fireExceptionAsync(IoSession session,
Exception exception) |
static void |
fireFlush(IoSession session) |
static void |
fireFlushAsync(IoSession session) |
static void |
fireIdle(IoSession session) |
static void |
fireIdleAsync(IoSession session) |
static void |
fireReceive(IoSession session) |
static void |
fireReceiveAsync(IoSession session) |
static void |
fireSent(IoSession session,
Object obj) |
static void |
fireSentAsync(IoSession session,
Object obj) |
public static void fireAcceptAsync(IoSession session)
public static void fireConnectAsync(IoSession session)
public static void fireReceiveAsync(IoSession session)
public static void fireFlushAsync(IoSession session)
public static void fireDisconnectAsync(IoSession session)
public static void fireIdleAsync(IoSession session)
public static void fireAccept(IoSession session)
public static void fireConnect(IoSession session)
public static void fireReceive(IoSession session)
public static void fireFlush(IoSession session)
public static void fireDisconnect(IoSession session)
public static void fireIdle(IoSession session)
public static void fireEvent(IoSession session, Event.EventName name, Object other)
session
- 当前连接会话name
- 事件名称other
- 附属对象public static void fire(IoSession session, Event.EventName name, Object other)
session
- 当前连接会话name
- 事件名称other
- 附属对象Copyright © 2020 Voovan. All rights reserved.