Class SimpleEventHandlerSubscription

java.lang.Object
com.github.philippheuer.events4j.simple.domain.SimpleEventHandlerSubscription
All Implemented Interfaces:
com.github.philippheuer.events4j.api.domain.IDisposable

public class SimpleEventHandlerSubscription
extends java.lang.Object
implements com.github.philippheuer.events4j.api.domain.IDisposable
  • Constructor Summary

    Constructors
    Constructor Description
    SimpleEventHandlerSubscription​(SimpleEventHandler simpleEventHandler, java.lang.Class<?> eventType, java.util.function.Consumer<?> consumer)  
  • Method Summary

    Modifier and Type Method Description
    void dispose()
    Dispose
    java.util.function.Consumer<?> getConsumer()  
    java.lang.Class<?> getEventType()  
    boolean isDisposed()  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • SimpleEventHandlerSubscription

      public SimpleEventHandlerSubscription​(SimpleEventHandler simpleEventHandler, java.lang.Class<?> eventType, java.util.function.Consumer<?> consumer)
  • Method Details

    • dispose

      public void dispose()
      Dispose
      Specified by:
      dispose in interface com.github.philippheuer.events4j.api.domain.IDisposable
    • getEventType

      public java.lang.Class<?> getEventType()
    • getConsumer

      public java.util.function.Consumer<?> getConsumer()
    • isDisposed

      public boolean isDisposed()
      Specified by:
      isDisposed in interface com.github.philippheuer.events4j.api.domain.IDisposable