com.sun.grizzly
Class IOEvent.DefaultIOEvent<E>
java.lang.Object
com.sun.grizzly.IOEvent.DefaultIOEvent<E>
- All Implemented Interfaces:
- IOEvent<E>
- Enclosing interface:
- IOEvent<E>
public static class IOEvent.DefaultIOEvent<E>
- extends Object
- implements IOEvent<E>
Simple IOEvent implementation
Method Summary |
E |
attach(E attachment)
Attach an E and return the previous value. |
E |
attachment()
Return the current attachment. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IOEvent.DefaultIOEvent
public IOEvent.DefaultIOEvent(E attachment)
attach
public E attach(E attachment)
- Description copied from interface:
IOEvent
- Attach an E and return the previous value.
- Specified by:
attach
in interface IOEvent<E>
- Parameters:
attachment
- object to attache
- Returns:
- previous attached value
attachment
public E attachment()
- Description copied from interface:
IOEvent
- Return the current attachment.
- Specified by:
attachment
in interface IOEvent<E>
- Returns:
- the attachment
Copyright © 2008 SUN Microsystems. All Rights Reserved.