public interface SerialSessionConfig extends IoSessionConfig
IoSessionConfig
for serial transport type.
All those parameters are extracted from rxtx.org API for more details :
http://www.rxtx.org限定符和类型 | 方法和说明 |
---|---|
int |
getInputBufferSize()
Gets the input buffer size.
|
int |
getOutputBufferSize()
Gets the output buffer size.
|
int |
getReceiveThreshold()
The current receive threshold (-1 if not enabled).
|
boolean |
isLowLatency()
Is the low latency mode is enabled.
|
void |
setInputBufferSize(int bufferSize)
Sets the input buffer size.
|
void |
setLowLatency(boolean lowLatency)
Set the low latency mode, be careful it's not supported by all the OS/hardware.
|
void |
setOutputBufferSize(int bufferSize)
Sets the output buffer size.
|
void |
setReceiveThreshold(int bytes)
Set the receive threshold in byte (set it to -1 for disable).
|
getBothIdleTime, getBothIdleTimeInMillis, getIdleTime, getIdleTimeInMillis, getMaxReadBufferSize, getMinReadBufferSize, getReadBufferSize, getReaderIdleTime, getReaderIdleTimeInMillis, getThroughputCalculationInterval, getThroughputCalculationIntervalInMillis, getWriterIdleTime, getWriterIdleTimeInMillis, getWriteTimeout, getWriteTimeoutInMillis, isUseReadOperation, setAll, setBothIdleTime, setIdleTime, setMaxReadBufferSize, setMinReadBufferSize, setReadBufferSize, setReaderIdleTime, setThroughputCalculationInterval, setUseReadOperation, setWriterIdleTime, setWriteTimeout
int getInputBufferSize()
void setInputBufferSize(int bufferSize)
bufferSize
- the buffer size in bytesint getOutputBufferSize()
void setOutputBufferSize(int bufferSize)
bufferSize
- the buffer size in bytesboolean isLowLatency()
void setLowLatency(boolean lowLatency)
lowLatency
- The low latency modeint getReceiveThreshold()
void setReceiveThreshold(int bytes)
bytes
- minimal amount of byte before producing a new frame, or -1 if disabled