- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- java.lang.IllegalStateException
-
- org.xnio.channels.ConcurrentStreamChannelAccessException
-
- All Implemented Interfaces:
java.io.Serializable
public class ConcurrentStreamChannelAccessException extends java.lang.IllegalStateExceptionAn exception which is thrown when more than one thread tries to access a stream channel at once. While it is permissible for different threads to read and write stream channels, only one thread may read at a time, and only one thread may write at a time.- Author:
- David M. Lloyd
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ConcurrentStreamChannelAccessException()Constructs aConcurrentStreamChannelAccessExceptionwith no detail message.ConcurrentStreamChannelAccessException(java.lang.String msg)Constructs aConcurrentStreamChannelAccessExceptionwith the specified detail message.ConcurrentStreamChannelAccessException(java.lang.String msg, java.lang.Throwable cause)Constructs aConcurrentStreamChannelAccessExceptionwith the specified detail message and cause.ConcurrentStreamChannelAccessException(java.lang.Throwable cause)Constructs aConcurrentStreamChannelAccessExceptionwith the specified cause.
-
-
-
Constructor Detail
-
ConcurrentStreamChannelAccessException
public ConcurrentStreamChannelAccessException()
Constructs aConcurrentStreamChannelAccessExceptionwith no detail message. The cause is not initialized, and may subsequently be initialized by a call toinitCause.
-
ConcurrentStreamChannelAccessException
public ConcurrentStreamChannelAccessException(java.lang.String msg)
Constructs aConcurrentStreamChannelAccessExceptionwith the specified detail message. The cause is not initialized, and may subsequently be initialized by a call toinitCause.- Parameters:
msg- the detail message
-
ConcurrentStreamChannelAccessException
public ConcurrentStreamChannelAccessException(java.lang.Throwable cause)
Constructs aConcurrentStreamChannelAccessExceptionwith the specified cause. The detail message is set to:(cause == null ? null : cause.toString())
(which typically contains the class and detail message ofcause).- Parameters:
cause- the cause (which is saved for later retrieval by theThrowable.getCause()method)
-
ConcurrentStreamChannelAccessException
public ConcurrentStreamChannelAccessException(java.lang.String msg, java.lang.Throwable cause)Constructs aConcurrentStreamChannelAccessExceptionwith the specified detail message and cause.- Parameters:
msg- the detail messagecause- the cause (which is saved for later retrieval by theThrowable.getCause()method)
-
-