Interface HandleListener


  • public interface HandleListener
    Allows listening to events on the Handle lifecycle.
    HandleListener objects are stored in a collection class. To ensure correct operation, they should implement Object.equals(java.lang.Object) and Object.hashCode() to allow correct addition and deletion from the collection.
    • Method Detail

      • handleCreated

        default void handleCreated​(Handle handle)
        A handle was created.
        Parameters:
        handle - The Handle object.
      • handleClosed

        default void handleClosed​(Handle handle)
        A handle was closed. This method is only called once, even if the handle is closed multiple times.
        Parameters:
        handle - The Handle object.