|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface SerialSessionConfig
An IoSessionConfig
for serial transport type.
All those parameters are extracted from rxtx.org API for more details :
http://www.rxtx.org
Method Summary | |
---|---|
int |
getInputBufferSize()
Gets the input 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 carefull it's not supported by all the OS/hardware. |
void |
setReceiveThreshold(int bytes)
Set the receive threshold in byte (set it to -1 for disable). |
Method Detail |
---|
int getInputBufferSize()
void setInputBufferSize(int bufferSize)
bufferSize
- the buffer size in bytesboolean isLowLatency()
void setLowLatency(boolean lowLatency)
lowLatency
- int getReceiveThreshold()
void setReceiveThreshold(int bytes)
bytes
- minimal amount of byte before producing a new frame, or -1 if disabled
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |