org.glassfish.grizzly.nio
Class RoundRobinConnectionDistributor
java.lang.Object
org.glassfish.grizzly.nio.AbstractNIOConnectionDistributor
org.glassfish.grizzly.nio.RoundRobinConnectionDistributor
- All Implemented Interfaces:
- NIOChannelDistributor
public final class RoundRobinConnectionDistributor
- extends AbstractNIOConnectionDistributor
RoundRobin NIOConnectionDistributor implementation,
which allocates one SelectorRunner for OP_ACCEPT events and other
event will be assign to a next SelectorRunner from the array.
- Author:
- Alexey Stashok
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RoundRobinConnectionDistributor
public RoundRobinConnectionDistributor(NIOTransport transport)
registerChannel
public void registerChannel(java.nio.channels.SelectableChannel channel,
int interestOps,
java.lang.Object attachment)
throws java.io.IOException
- Throws:
java.io.IOException
registerChannelAsync
public GrizzlyFuture<RegisterChannelResult> registerChannelAsync(java.nio.channels.SelectableChannel channel,
int interestOps,
java.lang.Object attachment,
CompletionHandler<RegisterChannelResult> completionHandler)
throws java.io.IOException
- Throws:
java.io.IOException
Copyright © 2011 Oracle Corpration. All Rights Reserved.