Class OwnedSubscriberImpl<O,​E>

    • Field Detail

      • owner

        protected final O owner
    • Constructor Detail

      • OwnedSubscriberImpl

        public OwnedSubscriberImpl​(@NonNull O owner,
                                   @NonNull java.lang.Class<E> eventClass,
                                   @NonNull java.util.function.Consumer<E> handler,
                                   @NonNull PostOrder postOrder)
      • OwnedSubscriberImpl

        public OwnedSubscriberImpl​(@NonNull O owner,
                                   @NonNull java.lang.Class<E> eventClass,
                                   @NonNull PostOrder postOrder,
                                   boolean ignoreCancelled,
                                   @NonNull H handlerInstance,
                                   @NonNull java.util.function.BiConsumer<H,​E> handler)
    • Method Detail

      • owner

        public @NonNull O owner()
        Description copied from interface: OwnedSubscriber
        Gets the instance that owns this event subscription.
        Specified by:
        owner in interface OwnedSubscriber<O,​E>
        Returns:
        the instance that owns this subscription