Interface ConnectionObserver.ConnectionRequestObserver

All Superinterfaces:
ConnectionObserver, org.refcodes.observer.Observer<org.refcodes.observer.MetaDataEvent>
Enclosing interface:
ConnectionObserver

public static interface ConnectionObserver.ConnectionRequestObserver extends ConnectionObserver
An observer for listening to ConnectionRequestEvent instances.
  • Method Details

    • onOpenEvent

      void onOpenEvent(OpenEvent aEvent) throws org.refcodes.exception.VetoException
      In case a device is to be opened, then the OpenEvent event is fired.
      Parameters:
      aEvent - The according OpenEvent.
      Throws:
      org.refcodes.exception.VetoException - the veto exception
    • onCloseEvent

      void onCloseEvent(CloseEvent aEvent) throws org.refcodes.exception.VetoException
      In case a device is to be closed, then the CloseEvent event is fired.
      Parameters:
      aEvent - The according CloseEvent.
      Throws:
      org.refcodes.exception.VetoException - the veto exception