类 InputStreamListener

java.lang.Object
com.huangjian.modbus4j.sero.messaging.InputStreamListener
所有已实现的接口:
Runnable

public class InputStreamListener extends Object implements Runnable
This class provides a stoppable listener for an input stream that sends arbitrary information. A read() call to an input stream will typically not return as long as the stream is not sending any data. This class provides a way for stream listeners to safely listen and still respond when they are told to stop.
  • 构造器详细资料

  • 方法详细资料

    • getReadDelay

      public int getReadDelay()

      Getter for the field readDelay.

      返回:
      a int.
    • setReadDelay

      public void setReadDelay(int readDelay)

      Setter for the field readDelay.

      参数:
      readDelay - a int.
    • start

      public void start(String threadName)

      start.

      参数:
      threadName - a String object.
    • stop

      public void stop()

      stop.

    • run

      public void run()

      run.

      指定者:
      run 在接口中 Runnable