Package ru.vassaev.core

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


        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

Related Classes of ru.vassaev.core.TimeoutInputStream

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.