public class QosLink extends java.lang.Object implements Link
v2.1.1 Gordio - SERVICE PACK 1
Arduino sends ok/ko messages directly after receiving the work message. So there is no need for a queue because if the next message read is not the ok/ko response it never will arrive. project Ardulink http://www.ardulink.org/Constructor and Description |
---|
QosLink(Link link) |
QosLink(Link link,
long timeout,
java.util.concurrent.TimeUnit timeUnit) |
Modifier and Type | Method and Description |
---|---|
Link |
addCustomListener(CustomListener listener) |
Link |
addListener(EventListener listener) |
Link |
addRplyListener(RplyListener listener) |
void |
close() |
Link |
getDelegate()
Deprecated.
|
Link |
removeCustomListener(CustomListener listener) |
Link |
removeListener(EventListener listener) |
Link |
removeRplyListener(RplyListener listener) |
long |
sendCustomMessage(java.lang.String... messages) |
long |
sendKeyPressEvent(char keychar,
int keycode,
int keylocation,
int keymodifiers,
int keymodifiersex) |
long |
sendNoTone(Pin.AnalogPin analogPin) |
long |
sendTone(Tone tone) |
long |
startListening(Pin pin) |
long |
stopListening(Pin pin) |
long |
switchAnalogPin(Pin.AnalogPin analogPin,
int value) |
long |
switchDigitalPin(Pin.DigitalPin digitalPin,
boolean value) |
public QosLink(Link link) throws java.io.IOException
java.io.IOException
public QosLink(Link link, long timeout, java.util.concurrent.TimeUnit timeUnit) throws java.io.IOException
java.io.IOException
public void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
java.io.IOException
public Link addListener(EventListener listener) throws java.io.IOException
addListener
in interface Link
java.io.IOException
public Link removeListener(EventListener listener) throws java.io.IOException
removeListener
in interface Link
java.io.IOException
public Link addRplyListener(RplyListener listener) throws java.io.IOException
addRplyListener
in interface Link
java.io.IOException
public Link removeRplyListener(RplyListener listener) throws java.io.IOException
removeRplyListener
in interface Link
java.io.IOException
public Link addCustomListener(CustomListener listener) throws java.io.IOException
addCustomListener
in interface Link
java.io.IOException
public Link removeCustomListener(CustomListener listener) throws java.io.IOException
removeCustomListener
in interface Link
java.io.IOException
public long startListening(Pin pin) throws java.io.IOException
startListening
in interface Link
java.io.IOException
public long stopListening(Pin pin) throws java.io.IOException
stopListening
in interface Link
java.io.IOException
public long switchAnalogPin(Pin.AnalogPin analogPin, int value) throws java.io.IOException
switchAnalogPin
in interface Link
java.io.IOException
public long switchDigitalPin(Pin.DigitalPin digitalPin, boolean value) throws java.io.IOException
switchDigitalPin
in interface Link
java.io.IOException
public long sendKeyPressEvent(char keychar, int keycode, int keylocation, int keymodifiers, int keymodifiersex) throws java.io.IOException
sendKeyPressEvent
in interface Link
java.io.IOException
public long sendTone(Tone tone) throws java.io.IOException
public long sendNoTone(Pin.AnalogPin analogPin) throws java.io.IOException
sendNoTone
in interface Link
java.io.IOException
public long sendCustomMessage(java.lang.String... messages) throws java.io.IOException
sendCustomMessage
in interface Link
java.io.IOException
@Deprecated public Link getDelegate()
Copyright © 2019. All rights reserved.