Examples of timeOut()


Examples of org.apache.catalina.core.AsyncContextImpl.timeout()

        boolean success = true;
        AsyncContextImpl asyncConImpl = (AsyncContextImpl)request.getAsyncContext();
        try {
            if (status==SocketStatus.TIMEOUT) {
                success = true;
                if (!asyncConImpl.timeout()) {
                    asyncConImpl.setErrorState(null);
                }
            }
            if (request.isAsyncDispatching()) {
                success = true;
View Full Code Here

Examples of org.apache.etch.compiler.opt.Timeout.timeout()

    if (o == null)
      return 0;

    Timeout t = (Timeout) o;
    return t.timeout();
  }

  /**
   * @return the type of this message.
   */
 
View Full Code Here

Examples of org.apache.ibatis.annotations.Options.timeout()

     
      if (options != null) {
        flushCache = options.flushCache();
        useCache = options.useCache();
        fetchSize = options.fetchSize() > -1 ? options.fetchSize() : null;
        timeout = options.timeout() > -1 ? options.timeout() : null;
        statementType = options.statementType();
        resultSetType = options.resultSetType();
      }
     
      ResultMap resultMapAnnotation = method.getAnnotation(ResultMap.class);
View Full Code Here

Examples of org.apache.ibatis.annotations.Options.timeout()

     
      if (options != null) {
        flushCache = options.flushCache();
        useCache = options.useCache();
        fetchSize = options.fetchSize() > -1 ? options.fetchSize() : null;
        timeout = options.timeout() > -1 ? options.timeout() : null;
        statementType = options.statementType();
        resultSetType = options.resultSetType();
      }
     
      ResultMap resultMapAnnotation = method.getAnnotation(ResultMap.class);
View Full Code Here

Examples of org.apache.ibatis.mapping.MappedStatement.Builder.timeout()

    builder.statementType(ms.getStatementType());
    builder.keyGenerator(ms.getKeyGenerator());
    builder.keyProperty(ms.getKeyProperty());
   
    //setStatementTimeout()
    builder.timeout(ms.getTimeout());
   
    //setStatementResultMap()
    builder.parameterMap(ms.getParameterMap());
   
    //setStatementResultMap()
View Full Code Here

Examples of org.atmosphere.annotation.Subscribe.timeout()

        }
       
        Subscribe subscribeAnnotation = ctx.getActionAnnotation(Subscribe.class);
        if (subscribeAnnotation != null) {
           
            int timeout = subscribeAnnotation.timeout();
            Class<? extends AtmosphereResourceEventListener>[] listeners =
                    subscribeAnnotation.listeners();
            Suspend.SCOPE scope = Suspend.SCOPE.APPLICATION;
            String topic = subscribeAnnotation.value();
            boolean writeEntity = subscribeAnnotation.writeEntity();
View Full Code Here

Examples of org.atmosphere.cpr.Action.timeout()

            final Action action = (Action) request.getAttribute(NettyCometSupport.SUSPEND);
            final State state = new State(request, action == null ? Action.CONTINUE : action);
            ctx.setAttachment(state);

            if (action != null && action.type() == Action.TYPE.SUSPEND) {
                if (action.timeout() != -1) {
                    final AtomicReference<ChannelWriter> w = new AtomicReference<ChannelWriter>(asyncWriter);
                    final AtomicReference<Future<?>> f = new AtomicReference<Future<?>>();
                    f.set(suspendTimer.scheduleAtFixedRate(new Runnable() {
                        @Override
                        public void run() {
View Full Code Here

Examples of org.atmosphere.cpr.Action.timeout()

                    final AtomicReference<ChannelWriter> w = new AtomicReference<ChannelWriter>(asyncWriter);
                    final AtomicReference<Future<?>> f = new AtomicReference<Future<?>>();
                    f.set(suspendTimer.scheduleAtFixedRate(new Runnable() {
                        @Override
                        public void run() {
                            if (!w.get().isClosed() && (System.currentTimeMillis() - w.get().lastTick()) > action.timeout()) {
                                AtmosphereResourceImpl impl = state.resource();
                                if (impl != null) {
                                    asynchronousProcessor.endRequest(impl, false);
                                    f.get().cancel(true);
                                }
View Full Code Here

Examples of org.atmosphere.cpr.Action.timeout()

                                    asynchronousProcessor.endRequest(impl, false);
                                    f.get().cancel(true);
                                }
                            }
                        }
                    }, action.timeout(), action.timeout(), TimeUnit.MILLISECONDS));
                }
            } else if (action != null && action.type() == Action.TYPE.RESUME) {
                resumeOnBroadcast = false;
            }
        } catch (AtmosphereMappingException ex) {
View Full Code Here

Examples of org.atmosphere.cpr.Action.timeout()

                                    asynchronousProcessor.endRequest(impl, false);
                                    f.get().cancel(true);
                                }
                            }
                        }
                    }, action.timeout(), action.timeout(), TimeUnit.MILLISECONDS));
                }
            } else if (action != null && action.type() == Action.TYPE.RESUME) {
                resumeOnBroadcast = false;
            }
        } catch (AtmosphereMappingException ex) {
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.