Interface ConnectionObserver<SRC>
- Type Parameters:
SRC
- The type of the source in question.
- All Superinterfaces:
org.refcodes.observer.Observer<ConnectionEvent<?,
SRC>>
- All Known Subinterfaces:
ConnectionObserver.ConnectionRequestObserver<SRC>
public interface ConnectionObserver<SRC>
extends org.refcodes.observer.Observer<ConnectionEvent<?,SRC>>
An observer for listening to
ConnectionEvent
instances.-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic interface
An observer for listening toConnectionRequestEvent
instances. -
Method Summary
Modifier and TypeMethodDescriptionvoid
onClosedEvent
(ClosedEvent<SRC> aEvent) Signaled in case a device is being closed.void
onOpendEvent
(OpenedEvent<SRC> aEvent) Signaled in case a device is being opened.Methods inherited from interface org.refcodes.observer.Observer
onEvent
-
Method Details
-
onOpendEvent
Signaled in case a device is being opened.- Parameters:
aEvent
- TheOpenedEvent
signaling a device-open.
-
onClosedEvent
Signaled in case a device is being closed.- Parameters:
aEvent
- TheClosedEvent
signaling a device-close.
-