Examples of TimeoutInputStream


Examples of org.eclipse.jgit.util.io.TimeoutInputStream

      rawOut = output;

      if (timeout > 0) {
        final Thread caller = Thread.currentThread();
        timer = new InterruptTimer(caller.getName() + "-Timer");
        TimeoutInputStream i = new TimeoutInputStream(rawIn, timer);
        TimeoutOutputStream o = new TimeoutOutputStream(rawOut, timer);
        i.setTimeout(timeout * 1000);
        o.setTimeout(timeout * 1000);
        rawIn = i;
        rawOut = o;
      }

View Full Code Here

Examples of org.eclipse.jgit.util.io.TimeoutInputStream

  protected final void init(InputStream myIn, OutputStream myOut) {
    final int timeout = transport.getTimeout();
    if (timeout > 0) {
      final Thread caller = Thread.currentThread();
      myTimer = new InterruptTimer(caller.getName() + "-Timer");
      timeoutIn = new TimeoutInputStream(myIn, myTimer);
      timeoutOut = new TimeoutOutputStream(myOut, myTimer);
      timeoutIn.setTimeout(timeout * 1000);
      timeoutOut.setTimeout(timeout * 1000);
      myIn = timeoutIn;
      myOut = timeoutOut;
View Full Code Here

Examples of org.eclipse.jgit.util.io.TimeoutInputStream

    msgOut = messages;

    if (timeout > 0) {
      final Thread caller = Thread.currentThread();
      timer = new InterruptTimer(caller.getName() + "-Timer");
      timeoutIn = new TimeoutInputStream(rawIn, timer);
      TimeoutOutputStream o = new TimeoutOutputStream(rawOut, timer);
      timeoutIn.setTimeout(timeout * 1000);
      o.setTimeout(timeout * 1000);
      rawIn = timeoutIn;
      rawOut = o;
View Full Code Here

Examples of org.eclipse.jgit.util.io.TimeoutInputStream

      rawOut = output;

      if (timeout > 0) {
        final Thread caller = Thread.currentThread();
        timer = new InterruptTimer(caller.getName() + "-Timer"); //$NON-NLS-1$
        TimeoutInputStream i = new TimeoutInputStream(rawIn, timer);
        TimeoutOutputStream o = new TimeoutOutputStream(rawOut, timer);
        i.setTimeout(timeout * 1000);
        o.setTimeout(timeout * 1000);
        rawIn = i;
        rawOut = o;
      }

View Full Code Here

Examples of org.eclipse.jgit.util.io.TimeoutInputStream

    msgOut = messages;

    if (timeout > 0) {
      final Thread caller = Thread.currentThread();
      timer = new InterruptTimer(caller.getName() + "-Timer"); //$NON-NLS-1$
      timeoutIn = new TimeoutInputStream(rawIn, timer);
      TimeoutOutputStream o = new TimeoutOutputStream(rawOut, timer);
      timeoutIn.setTimeout(timeout * 1000);
      o.setTimeout(timeout * 1000);
      rawIn = timeoutIn;
      rawOut = o;
View Full Code Here

Examples of org.eclipse.jgit.util.io.TimeoutInputStream

    msgOut = messages;

    if (timeout > 0) {
      final Thread caller = Thread.currentThread();
      timer = new InterruptTimer(caller.getName() + "-Timer"); //$NON-NLS-1$
      timeoutIn = new TimeoutInputStream(rawIn, timer);
      TimeoutOutputStream o = new TimeoutOutputStream(rawOut, timer);
      timeoutIn.setTimeout(timeout * 1000);
      o.setTimeout(timeout * 1000);
      rawIn = timeoutIn;
      rawOut = o;
View Full Code Here

Examples of org.eclipse.jgit.util.io.TimeoutInputStream

        msgOut = messages;

      if (timeout > 0) {
        final Thread caller = Thread.currentThread();
        timer = new InterruptTimer(caller.getName() + "-Timer"); //$NON-NLS-1$
        TimeoutInputStream i = new TimeoutInputStream(rawIn, timer);
        TimeoutOutputStream o = new TimeoutOutputStream(rawOut, timer);
        i.setTimeout(timeout * 1000);
        o.setTimeout(timeout * 1000);
        rawIn = i;
        rawOut = o;
      }

View Full Code Here

Examples of ru.vassaev.core.TimeoutInputStream

    int connect = 0;
    boolean need_catch = true;
    boolean need_send = true;
    Object v = null;
    ru.vassaev.core.thread.Process prcr = null;
    TimeoutInputStream tis = null;
    ByteMsg msg = null;
    try {
      ru.vassaev.core.thread.Process prc = Process.currentProcess();
      // Переменные потока
      prc.regResourceName(catch_wait, "catch_wait");
View Full Code Here

Examples of ru.vassaev.core.TimeoutInputStream

        Process tprc = executor.occupyOrNew();
        OutputByteBuffer obb = null;
        try {
          long read_wait = Strings.parseIntegerNvl(
              cntx.getPrmByFullName("read_wait"), 10000);// !!!
          TimeoutInputStream tis = new TimeoutInputStream(tprc);
          tis.setTimeout(read_wait);
          tis.setLimitRead(cl);
          tis.setCircleBufferSize(50);
          tis.startReadSource(is);
          obb = (cl <= 0) ? Process.getByteBuffer(8000, tis)
              : Process.getByteBuffer(8000, tis, cl);
        } catch (SysException e) {
          e.printStackTrace();
          tprc.interrupt();
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.