Interface ConnectionObserver.ConnectionRequestObserver<SRC>

Type Parameters:
SRC - The type of the source in question.
All Superinterfaces:
ConnectionObserver<SRC>, org.refcodes.observer.Observer<ConnectionEvent<?,SRC>>
Enclosing interface:
ConnectionObserver<SRC>

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

    • onOpenEvent

      void onOpenEvent(OpenEvent<SRC> 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<SRC> 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