类 InputStreamListener
java.lang.Object
com.huangjian.modbus4j.sero.messaging.InputStreamListener
- 所有已实现的接口:
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.
-
构造器概要
构造器构造器说明InputStreamListener(InputStream in, DataConsumer consumer) Constructor for InputStreamListener. -
方法概要
修饰符和类型方法说明intGetter for the fieldreadDelay.voidrun()run.voidsetReadDelay(int readDelay) Setter for the fieldreadDelay.voidstart.voidstop()stop.
-
构造器详细资料
-
InputStreamListener
Constructor for InputStreamListener.
- 参数:
in- aInputStreamobject.consumer- aDataConsumerobject.
-
-
方法详细资料
-
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
start.
- 参数:
threadName- aStringobject.
-
stop
public void stop()stop.
-
run
public void run()run.
-