net.gleamynode.netty2
Class Event

java.lang.Object
  extended by net.gleamynode.netty2.Event

public class Event
extends Object

Represents an event that is passed among I/O controller, I/O processor, and event dispatchers.

Version:
$Rev: 4 $, $Date: 2005-04-18 12:04:09 +0900 $
Author:
Trustin Lee (http://gleamynode.net/)

Constructor Summary
Event(EventType type, Session session, Object item)
          Creates a new instance.
 
Method Summary
 Object getItem()
          Returns additional object related with this event (Message, Exception, or null if none).
 Session getSession()
          Returns the session which is related with this event.
 EventType getType()
          Returns the type of the event.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Event

public Event(EventType type,
             Session session,
             Object item)
Creates a new instance.

Parameters:
type - the type of the event
session - the session which is related with this event
item - additional object related with this event (Message, Exception, or null if none)
Method Detail

getType

public EventType getType()
Returns the type of the event.


getSession

public Session getSession()
Returns the session which is related with this event.


getItem

public Object getItem()
Returns additional object related with this event (Message, Exception, or null if none).



Copyright © 2004-2008 Trustin Lee. All Rights Reserved.