@Exported public class ClosedConnectionException extends IOException
Connection
の非同期クローズの結果としてスローされる可能性があります。
ターゲットVMからのパケットを待機するreadPacket
でスレッドがブロックされると、Connection
が、close
メソッドを呼び出す別のスレッドによって非同期にクローズされることがあります。これが発生すると、readPacketのスレッドはこの例外をスローします。同様に、スレッドがConnection.writePacket(byte[])
でブロックされると、Connectionがクローズされる可能性があります。これが発生すると、writePacketのスレッドはこの例外をスローします。
Connection.readPacket()
, Connection.writePacket(byte[])
, 直列化された形式コンストラクタと説明 |
---|
ClosedConnectionException()
詳細メッセージなしでClosedConnectionExceptionを構築します。
|
ClosedConnectionException(String message)
指定された詳細メッセージでClosedConnectionExceptionを構築します。
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public ClosedConnectionException()
public ClosedConnectionException(String message)
message
- この例外に関連する詳細メッセージ。
Copyright © 1999, 2014, Oracle and/or its affiliates. All rights reserved.