|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This is the factory for managing ISerialCommService objects. Since multiple threads may share a single ISerialCommService object, a factory is required to create, deliver, track and destroy all ISerialCommService objects.
Field Summary | |
static java.lang.String |
SERVICE_NAME
Reports the class name representing this interface. |
Method Summary | |
ISerialCommService |
getSerialCommService(java.lang.String port,
boolean exclusive)
Gets an ISerialCommService object for the selected port. |
void |
releaseSerialCommService(ISerialCommService service)
Releases the selected ISerialCommService object. |
Field Detail |
public static final java.lang.String SERVICE_NAME
Method Detail |
public ISerialCommService getSerialCommService(java.lang.String port, boolean exclusive) throws PortInUseException, PortNotAvailableException
port
- Name of device controlling the selected port.exclusive
- If set, the ISerialCOmmService object is not to be shared.
PortInUseException
- Attempted to obtain the object for a port already held
exclusive by another thread or attempted exclusive mode
for an object already held by another thread.
PortNotAvailableException
- The selected port device does not exist.public void releaseSerialCommService(ISerialCommService service)
service
- If service is invalid, this method does nothing.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |