org.glassfish.grizzly.nio
Class AbstractNIOConnectionDistributor
java.lang.Object
org.glassfish.grizzly.nio.AbstractNIOConnectionDistributor
- All Implemented Interfaces:
- NIOChannelDistributor
- Direct Known Subclasses:
- RoundRobinConnectionDistributor
public abstract class AbstractNIOConnectionDistributor
- extends Object
- implements NIOChannelDistributor
- Author:
- Alexey Stashok
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
transport
protected final NIOTransport transport
AbstractNIOConnectionDistributor
public AbstractNIOConnectionDistributor(NIOTransport transport)
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.