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