fulmine.util.io
Class AbstractSelectionKeyTask
java.lang.Object
fulmine.util.io.AbstractSelectionKeyTask
- All Implemented Interfaces:
- IDestroyable, ISelectionKeyTask
- Direct Known Subclasses:
- DelegatingSelectionKeyTask
public abstract class AbstractSelectionKeyTask
- extends Object
- implements ISelectionKeyTask
Useful base-class that defines the SelectionKey
that is set by the
SelectorTasks
.
- Author:
- Ramon Servadei
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractSelectionKeyTask
public AbstractSelectionKeyTask()
getSelectionKey
public SelectionKey getSelectionKey()
setSelectionKey
public void setSelectionKey(SelectionKey selectionKey)
- Description copied from interface:
ISelectionKeyTask
- Receives the selection key returned from the
SelectableChannel.register(java.nio.channels.Selector, int)
method called during the
SelectorTasks.register(int, SelectableChannel, ISelectionKeyTask)
method.
- Specified by:
setSelectionKey
in interface ISelectionKeyTask
- Parameters:
selectionKey
- the selection key for this
destroy
public void destroy()
- Description copied from interface:
IDestroyable
- This is called when the object is being removed from application use.
This releases all system resources and performs clean up prior to the
object becoming redundant. This operation is idempotent.
This method must not throw a RuntimeException
.
- Specified by:
destroy
in interface IDestroyable
Copyright © 2007-2009. All Rights Reserved.