package org.glassfish.grizzly.nio;
import java.io.IOException;
import java.nio.channels.SelectableChannel;
import org.glassfish.grizzly.CompletionHandler;
import org.glassfish.grizzly.GrizzlyFuture;
public interface NIOChannelDistributor {
void registerChannel(SelectableChannel channel)
throws IOException;
void registerChannel(SelectableChannel channel,
int interestOps) throws IOException;
void registerChannel(SelectableChannel channel,
int interestOps, Object attachment) throws IOException;
GrizzlyFuture<RegisterChannelResult> registerChannelAsync(
SelectableChannel channel);
GrizzlyFuture<RegisterChannelResult> registerChannelAsync(
SelectableChannel channel, int interestOps);
GrizzlyFuture<RegisterChannelResult> registerChannelAsync(
SelectableChannel channel, int interestOps, Object attachment);
void registerChannelAsync(
SelectableChannel channel, int interestOps, Object attachment,
CompletionHandler<RegisterChannelResult> completionHandler);
void registerServiceChannelAsync(
SelectableChannel channel, int interestOps, Object attachment,
CompletionHandler<RegisterChannelResult> completionHandler);
}