fulmine.util.io
Class DelegatingSelectionKeyTask

java.lang.Object
  extended by fulmine.util.io.AbstractSelectionKeyTask
      extended by fulmine.util.io.DelegatingSelectionKeyTask
All Implemented Interfaces:
IDestroyable, ISelectionKeyTask

public final class DelegatingSelectionKeyTask
extends AbstractSelectionKeyTask

Delegates the ISelectionKeyTask.run() method to a ISelectionKeyTask.

Author:
Ramon Servadei

Constructor Summary
DelegatingSelectionKeyTask(ISelectionKeyTask delegate)
           
 
Method Summary
 void destroy()
          This is called when the object is being removed from application use.
 void run()
          Run the task associated with the operation and selection key
 
Methods inherited from class fulmine.util.io.AbstractSelectionKeyTask
getSelectionKey, setSelectionKey
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DelegatingSelectionKeyTask

public DelegatingSelectionKeyTask(ISelectionKeyTask delegate)
Method Detail

run

public void run()
Description copied from interface: ISelectionKeyTask
Run the task associated with the operation and selection key


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
Overrides:
destroy in class AbstractSelectionKeyTask


Copyright © 2007-2009. All Rights Reserved.