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
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceAn observer for listening toConnectionRequestEventinstances. -
Method Summary
Modifier and TypeMethodDescriptionvoidonClosedEvent(ClosedEvent<SRC> aEvent) Signaled in case a device is being closed.voidonOpendEvent(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- TheOpenedEventsignaling a device-open.
-
onClosedEvent
Signaled in case a device is being closed.- Parameters:
aEvent- TheClosedEventsignaling a device-close.
-