org.ow2.petals.transport.platform.nio.selector
Class NioSelectorAgent

java.lang.Object
  extended by org.ow2.petals.transport.platform.nio.selector.NioSelectorAgent
All Implemented Interfaces:
java.lang.Runnable, NioSelector

public class NioSelectorAgent
extends java.lang.Object
implements java.lang.Runnable, NioSelector

The NIO selector.

Author:
Christophe DENEUX (Capgemini Sud)

Field Summary
 
Fields inherited from interface org.ow2.petals.transport.platform.nio.selector.NioSelector
NIO_SELECTOR_ITF
 
Constructor Summary
NioSelectorAgent()
           
 
Method Summary
 void register(int key, java.nio.channels.spi.AbstractSelectableChannel channel, java.lang.Object attachement)
           
 void run()
           
protected  void start()
           
protected  void stop()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NioSelectorAgent

public NioSelectorAgent()
Method Detail

register

public final void register(int key,
                           java.nio.channels.spi.AbstractSelectableChannel channel,
                           java.lang.Object attachement)
                    throws java.nio.channels.ClosedChannelException
Specified by:
register in interface NioSelector
Throws:
java.nio.channels.ClosedChannelException

run

public final void run()
Specified by:
run in interface java.lang.Runnable

start

protected void start()
              throws java.io.IOException
Throws:
java.io.IOException

stop

protected void stop()
             throws java.lang.Exception
Throws:
java.lang.Exception


Copyright © 2005-2011 Petals Link (EBM Websourcing). All Rights Reserved.