クラス
java.nio.channels.ClosedChannelExceptionの使用
-
ClosedChannelExceptionを使用しているパッケージ パッケージ 説明 java.nio.channels 入出力操作を実行できるエンティティ(ファイル、ソケットなど)への接続を表すチャネルや、多重化された非ブロック入出力操作用のセレクタを定義します。java.nio.channels.spi java.nio.channels
パッケージのサービス・プロバイダ・クラス。 -
-
java.nio.channelsでのClosedChannelExceptionの使用
java.nio.channelsでのClosedChannelExceptionのサブクラス 修飾子と型 クラス 説明 class
AsynchronousCloseException
別のスレッドがチャネルまたは入出力操作時にブロックされるチャネルの一部をクローズしたときにスレッドが受け取るチェック例外です。class
ClosedByInterruptException
スレッドがチャネルでの入出力操作でブロックされているにもかかわらず、別のスレッドから割込みを受けた場合に受信するチェック例外です。ClosedChannelExceptionをスローするjava.nio.channelsのメソッド 修飾子と型 メソッド 説明 SelectionKey
SelectableChannel. register(Selector sel, int ops)
このチャネルを指定されたセレクタに登録し、選択キーを返します。abstract SelectionKey
SelectableChannel. register(Selector sel, int ops, Object att)
このチャネルを指定されたセレクタに登録し、選択キーを返します。 -
java.nio.channels.spiでのClosedChannelExceptionの使用
ClosedChannelExceptionをスローするjava.nio.channels.spiのメソッド 修飾子と型 メソッド 説明 SelectionKey
AbstractSelectableChannel. register(Selector sel, int ops, Object att)
このチャネルを指定されたセレクタに登録し、選択キーを返します。
-