Package 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
-
-
Field Summary
Fields Modifier and Type Field Description protected NIOTransport
transport
-
Constructor Summary
Constructors Constructor Description AbstractNIOConnectionDistributor(NIOTransport transport)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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, registerServiceChannelAsync
-
-
-
-
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 interfaceNIOChannelDistributor
- Throws:
IOException
-
registerChannel
public final void registerChannel(SelectableChannel channel, int interestOps) throws IOException
- Specified by:
registerChannel
in interfaceNIOChannelDistributor
- Throws:
IOException
-
registerChannelAsync
public final GrizzlyFuture<RegisterChannelResult> registerChannelAsync(SelectableChannel channel)
- Specified by:
registerChannelAsync
in interfaceNIOChannelDistributor
-
registerChannelAsync
public final GrizzlyFuture<RegisterChannelResult> registerChannelAsync(SelectableChannel channel, int interestOps)
- Specified by:
registerChannelAsync
in interfaceNIOChannelDistributor
-
registerChannelAsync
public final GrizzlyFuture<RegisterChannelResult> registerChannelAsync(SelectableChannel channel, int interestOps, Object attachment)
- Specified by:
registerChannelAsync
in interfaceNIOChannelDistributor
-
getTransportSelectorRunners
protected SelectorRunner[] getTransportSelectorRunners()
-
-