org.glassfish.grizzly.nio
Class AbstractNIOConnectionDistributor

java.lang.Object
  extended by org.glassfish.grizzly.nio.AbstractNIOConnectionDistributor
All Implemented Interfaces:
NIOChannelDistributor
Direct Known Subclasses:
RoundRobinConnectionDistributor

public abstract class AbstractNIOConnectionDistributor
extends Object
implements NIOChannelDistributor

Author:
Alexey Stashok

Field Summary
protected  AbstractNIOTransport transport
           
 
Constructor Summary
AbstractNIOConnectionDistributor(AbstractNIOTransport transport)
           
 
Method Summary
protected  SelectorRunner[] getTransportSelectorRunners()
           
 void registerChannel(SelectableChannel channel)
           
 void registerChannel(SelectableChannel channel, int interestOps)
           
 Future<RegisterChannelResult> registerChannelAsync(SelectableChannel channel)
           
 Future<RegisterChannelResult> registerChannelAsync(SelectableChannel channel, int interestOps)
           
 Future<RegisterChannelResult> registerChannelAsync(SelectableChannel channel, int interestOps, Object attachment)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.glassfish.grizzly.nio.NIOChannelDistributor
registerChannel, registerChannelAsync
 

Field Detail

transport

protected AbstractNIOTransport transport
Constructor Detail

AbstractNIOConnectionDistributor

public AbstractNIOConnectionDistributor(AbstractNIOTransport transport)
Method Detail

registerChannel

public void registerChannel(SelectableChannel channel)
                     throws IOException
Specified by:
registerChannel in interface NIOChannelDistributor
Throws:
IOException

registerChannel

public void registerChannel(SelectableChannel channel,
                            int interestOps)
                     throws IOException
Specified by:
registerChannel in interface NIOChannelDistributor
Throws:
IOException

registerChannelAsync

public Future<RegisterChannelResult> registerChannelAsync(SelectableChannel channel)
                                                   throws IOException
Specified by:
registerChannelAsync in interface NIOChannelDistributor
Throws:
IOException

registerChannelAsync

public Future<RegisterChannelResult> registerChannelAsync(SelectableChannel channel,
                                                          int interestOps)
                                                   throws IOException
Specified by:
registerChannelAsync in interface NIOChannelDistributor
Throws:
IOException

registerChannelAsync

public Future<RegisterChannelResult> registerChannelAsync(SelectableChannel channel,
                                                          int interestOps,
                                                          Object attachment)
                                                   throws IOException
Specified by:
registerChannelAsync in interface NIOChannelDistributor
Throws:
IOException

getTransportSelectorRunners

protected SelectorRunner[] getTransportSelectorRunners()


Copyright © 2009 SUN Microsystems. All Rights Reserved.