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.
  • Method Details

    • onOpendEvent

      void onOpendEvent(OpenedEvent<SRC> aEvent)
      Signaled in case a device is being opened.
      Parameters:
      aEvent - The OpenedEvent signaling a device-open.
    • onClosedEvent

      void onClosedEvent(ClosedEvent<SRC> aEvent)
      Signaled in case a device is being closed.
      Parameters:
      aEvent - The ClosedEvent signaling a device-close.