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(SelectableChannel channel,
int interestOps,
Object attachment)
throws IOException
- Throws:
IOException
registerChannelAsync
public void registerChannelAsync(SelectableChannel channel,
int interestOps,
Object attachment,
CompletionHandler<RegisterChannelResult> completionHandler)
Copyright © 2012 Oracle Corporation. All Rights Reserved.