com.sun.grizzly.nio
Class RoundRobinConnectionDistributor
java.lang.Object
com.sun.grizzly.nio.AbstractNIOConnectionDistributor
com.sun.grizzly.nio.RoundRobinConnectionDistributor
- All Implemented Interfaces:
- NIOChannelDistributor
public 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(AbstractNIOTransport transport)
registerChannel
public void registerChannel(SelectableChannel channel,
int interestOps,
Object attachment)
throws IOException
- Throws:
IOException
registerChannelAsync
public Future<RegisterChannelResult> registerChannelAsync(SelectableChannel channel,
int interestOps,
Object attachment,
CompletionHandler completionHandler)
throws IOException
- Throws:
IOException
Copyright © 2009 SUN Microsystems. All Rights Reserved.