Package org.apache.mina.common

Examples of org.apache.mina.common.RuntimeIOException


                catch( SocketException e )
                {
                    // Throw an exception only when setTrafficClass is also available.
                    if( SocketSessionConfigImpl.isSetTrafficClassAvailable() )
                    {
                        throw new RuntimeIOException( e );
                    }
                }
            }

            return 0;
View Full Code Here


                {
                    ch.socket().setTrafficClass( tc );
                }
                catch( SocketException e )
                {
                    throw new RuntimeIOException( e );
                }
            }
        }
View Full Code Here

            {
                return ch.socket().getSendBufferSize();
            }
            catch( SocketException e )
            {
                throw new RuntimeIOException( e );
            }
        }
View Full Code Here

                {
                    ch.socket().setSendBufferSize( size );
                }
                catch( SocketException e )
                {
                    throw new RuntimeIOException( e );
                }
            }
        }
View Full Code Here

            {
                return ch.socket().getReceiveBufferSize();
            }
            catch( SocketException e )
            {
                throw new RuntimeIOException( e );
            }
        }
View Full Code Here

                    size = ch.socket().getReceiveBufferSize();
                    SocketSessionImpl.this.readBufferSize = size;
                }
                catch( SocketException e )
                {
                    throw new RuntimeIOException( e );
                }
            }
        }
View Full Code Here

        {
            throw ( RuntimeIOException ) v;
        }
        else if( v instanceof Throwable )
        {
            throw ( RuntimeIOException ) new RuntimeIOException( "Failed to get the session." ).initCause( ( Throwable ) v );
        }
        else
        {
            return ( IoSession ) v;
        }
View Full Code Here

    public IoSession getSession() throws RuntimeIOException {
        Object v = getValue();
        if (v instanceof RuntimeIOException) {
            throw (RuntimeIOException) v;
        } else if (v instanceof Throwable) {
            throw (RuntimeIOException) new RuntimeIOException(
                    "Failed to get the session.").initCause((Throwable) v);
        } else {
            return (IoSession) v;
        }
    }
View Full Code Here

        }

        try {
            latch.await();
        } catch (InterruptedException e) {
            throw new RuntimeIOException(e);
        }
    }
View Full Code Here

        }

        try {
            latch.await();
        } catch (InterruptedException e) {
            throw new RuntimeIOException(e);
        }
    }
View Full Code Here

TOP

Related Classes of org.apache.mina.common.RuntimeIOException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.