Package com.kosdev.kos.core.service.udev
Interface UdevDeviceOwner
public interface UdevDeviceOwner
Interface that allows a
UdevDevice to be claimed / released. Claiming
a device provides the UdevDeviceOwner exclusive access to the device
until the device is released, the owner is removed, or the device itself
is removed.- Since:
- 1
- Version:
- 9
-
Method Summary
Modifier and TypeMethodDescriptionvoidonOwnedDeviceAdd(UdevService service, UdevDevice device) Called when aUdevDeviceis claimed by this owner.voidonOwnedDeviceRemove(UdevService service, UdevDevice device) Called when aUdevDeviceowned by this owner goes away.
-
Method Details
-
onOwnedDeviceAdd
Called when aUdevDeviceis claimed by this owner. This should not perform any long running tasks.- Since:
- 9
-
onOwnedDeviceRemove
Called when aUdevDeviceowned by this owner goes away. This is typically the result of the hardware being disconnected, power cycled and so on.- Since:
- 9
-