Package org.osgi.service.serial
Interface SerialEvent
public interface SerialEvent
A serial device event. SerialEvent objects are delivered to
SerialEventListeners when an event occurs.
A type of code is used to identify the event. Additional event types may be defined in the future.
- "ThreadSafe"
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
Event type indicating data available. -
Method Summary
Modifier and TypeMethodDescriptionReturns the port name of this event.int
getType()
Returns the type of this event.
-
Field Details
-
DATA_AVAILABLE
static final int DATA_AVAILABLEEvent type indicating data available.- See Also:
-
-
Method Details
-
getType
int getType()Returns the type of this event.- Returns:
- The type of this event.
-
getComPort
String getComPort()Returns the port name of this event.This value must be equal to the value of
SerialDevice.SERIAL_COMPORT
service property of theSerialDevice
.- Returns:
- The port name of this event.
-