Examples of WriteTimeoutException


Examples of org.apache.mina.core.write.WriteTimeoutException

        if (writeTimeout > 0 && currentTime - session.getLastWriteTime() >= writeTimeout
                && !session.getWriteRequestQueue().isEmpty(session)) {
            WriteRequest request = session.getCurrentWriteRequest();
            if (request != null) {
                session.setCurrentWriteRequest(null);
                WriteTimeoutException cause = new WriteTimeoutException(request);
                request.getFuture().setException(cause);
                session.getFilterChain().fireExceptionCaught(cause);
                // WriteException is an IOException, so we close the session.
                session.close(true);
            }
View Full Code Here

Examples of org.apache.mina.core.write.WriteTimeoutException

        if ((writeTimeout > 0) && (currentTime - session.getLastWriteTime() >= writeTimeout)
                && !session.getWriteRequestQueue().isEmpty(session)) {
            WriteRequest request = session.getCurrentWriteRequest();
            if (request != null) {
                session.setCurrentWriteRequest(null);
                WriteTimeoutException cause = new WriteTimeoutException(request);
                request.getFuture().setException(cause);
                session.getFilterChain().fireExceptionCaught(cause);
                // WriteException is an IOException, so we close the session.
                session.close(true);
            }
View Full Code Here

Examples of org.apache.mina.io.WriteTimeoutException

            && key != null && key.isValid()
            && ( key.interestOps() & SelectionKey.OP_WRITE ) != 0 )
        {
            session
                    .getManagerFilterChain()
                    .exceptionCaught( session, new WriteTimeoutException() );
        }
    }
View Full Code Here

Examples of org.apache.mina.io.WriteTimeoutException

            && key != null && key.isValid()
            && ( key.interestOps() & SelectionKey.OP_WRITE ) != 0 )
        {
            session
                    .getManagerFilterChain()
                    .exceptionCaught( session, new WriteTimeoutException() );
        }
    }
View Full Code Here

Examples of org.apache.mina.io.WriteTimeoutException

            && ( currentTime - lastIoTime ) >= writeTimeout
            && ( session.getSelectionKey().interestOps() & SelectionKey.OP_WRITE ) != 0 )
        {
            session
                    .getManagerFilterChain()
                    .exceptionCaught( session, new WriteTimeoutException() );
        }
    }
View Full Code Here

Examples of org.apache.mina.io.WriteTimeoutException

            && session.getSelectionKey() != null
            && ( session.getSelectionKey().interestOps() & SelectionKey.OP_WRITE ) != 0 )
        {
            session
                    .getManagerFilterChain()
                    .exceptionCaught( session, new WriteTimeoutException() );
        }
    }
View Full Code Here

Examples of org.apache.mina.io.WriteTimeoutException

            && session.getSelectionKey() != null
            && ( session.getSelectionKey().interestOps() & SelectionKey.OP_WRITE ) != 0 )
        {
            session
                    .getManagerFilterChain()
                    .exceptionCaught( session, new WriteTimeoutException() );
        }
    }
View Full Code Here

Examples of org.jboss.netty.handler.timeout.WriteTimeoutException

  }

  @Override
  protected void writeTimedOut(ChannelHandlerContext ctx)
  {
    Channels.fireExceptionCaught(ctx, new WriteTimeoutException(_name));
    if (_closeOnTimeout) ctx.getChannel().close(); //close the channel asynchronously
  }
View Full Code Here

Examples of org.jboss.netty.handler.timeout.WriteTimeoutException

    Thread t = null;
    if(LOG.isDebugEnabled())
      LOG.debug("=>=>=>=WRite complete start" + e);
    if(_disableWriteComplete) {
      LOG.info("Injecting exceptions into writeComplete");
      _future.setFailure(new WriteTimeoutException("Mocked WriteTimeout"));
      _future.setFailure(new ClosedChannelException());
      TestUtil.sleep(16000); // 16s sleep
    } else if(_delayWriteComplete) {
      LOG.info("Injecting delay into writeComplete");
      t = startExceptionThread(ctx);
View Full Code Here

Examples of org.jboss.netty.handler.timeout.WriteTimeoutException

    Thread t = new Thread( new Runnable() {
      @Override
      public void run() {
        LOG.info("***** ABOUT TO FIRE time out exception");
        //_future.setFailure(new WriteTimeoutException("MOCK write timeout exception1"));
        Channels.fireExceptionCaught(ctx, new WriteTimeoutException("MOCK write timeout exception2"));
        LOG.info("**** Exception in the hole ");
        try {
          Thread.sleep(100000); // sleep will be interrupted
        } catch (InterruptedException e) {
          LOG.info("sleep interrupted");
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.