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  NIOTransport transport
           
 
Constructor Summary
AbstractNIOConnectionDistributor(NIOTransport transport)
           
 
Method Summary
protected  SelectorRunner[] getTransportSelectorRunners()
           
 void registerChannel(SelectableChannel channel)
           
 void registerChannel(SelectableChannel channel, int interestOps)
           
 GrizzlyFuture<RegisterChannelResult> registerChannelAsync(SelectableChannel channel)
           
 GrizzlyFuture<RegisterChannelResult> registerChannelAsync(SelectableChannel channel, int interestOps)
           
 GrizzlyFuture<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 final NIOTransport transport
Constructor Detail

AbstractNIOConnectionDistributor

public AbstractNIOConnectionDistributor(NIOTransport transport)
Method Detail

registerChannel

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

registerChannel

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

registerChannelAsync

public final GrizzlyFuture<RegisterChannelResult> registerChannelAsync(SelectableChannel channel)
Specified by:
registerChannelAsync in interface NIOChannelDistributor

registerChannelAsync

public final GrizzlyFuture<RegisterChannelResult> registerChannelAsync(SelectableChannel channel,
                                                                       int interestOps)
Specified by:
registerChannelAsync in interface NIOChannelDistributor

registerChannelAsync

public final GrizzlyFuture<RegisterChannelResult> registerChannelAsync(SelectableChannel channel,
                                                                       int interestOps,
                                                                       Object attachment)
Specified by:
registerChannelAsync in interface NIOChannelDistributor

getTransportSelectorRunners

protected SelectorRunner[] getTransportSelectorRunners()


Copyright © 2012 Oracle Corporation. All Rights Reserved.