クラス
java.nio.channels.AsynchronousChannelGroupの使用
AsynchronousChannelGroupを使用するパッケージ
パッケージ
説明
入出力操作を実行できるエンティティ(ファイル、ソケットなど)への接続を表すチャネルや、多重化された非ブロック入出力操作用のセレクタを定義します。
java.nio.channelsパッケージのサービス・プロバイダ・クラス。-
java.nio.channelsでのAsynchronousChannelGroupの使用
修飾子と型メソッド説明static AsynchronousChannelGroupAsynchronousChannelGroup.withCachedThreadPool(ExecutorService executor, int initialSize) 必要に応じて新しいスレッドを作成する指定されたスレッド・プールで、非同期チャネル・グループを作成します。static AsynchronousChannelGroupAsynchronousChannelGroup.withFixedThreadPool(int nThreads, ThreadFactory threadFactory) 固定されたスレッド・プールで非同期チャネル・グループを作成します。static AsynchronousChannelGroupAsynchronousChannelGroup.withThreadPool(ExecutorService executor) 指定されたスレッド・プールで非同期チャネル・グループを作成します。型AsynchronousChannelGroupのパラメータを持つjava.nio.channelsのメソッド修飾子と型メソッド説明AsynchronousServerSocketChannel.open(AsynchronousChannelGroup group) 非同期のサーバー・ソケット・チャネルを開きます。static AsynchronousSocketChannelAsynchronousSocketChannel.open(AsynchronousChannelGroup group) 非同期のソケット・チャネルを開きます。 -
java.nio.channels.spiでのAsynchronousChannelGroupの使用
修飾子と型メソッド説明abstract AsynchronousChannelGroupAsynchronousChannelProvider.openAsynchronousChannelGroup(int nThreads, ThreadFactory threadFactory) 固定されたスレッド・プールで新しい非同期チャネル・グループを構築します。abstract AsynchronousChannelGroupAsynchronousChannelProvider.openAsynchronousChannelGroup(ExecutorService executor, int initialSize) 指定されたスレッド・プールで新しい非同期チャネル・グループを構築します。型AsynchronousChannelGroupのパラメータを持つjava.nio.channels.spiのメソッド修飾子と型メソッド説明abstract AsynchronousServerSocketChannelAsynchronousChannelProvider.openAsynchronousServerSocketChannel(AsynchronousChannelGroup group) 非同期のサーバー・ソケット・チャネルを開きます。abstract AsynchronousSocketChannelAsynchronousChannelProvider.openAsynchronousSocketChannel(AsynchronousChannelGroup group) 非同期のソケット・チャネルを開きます。