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 Object implements com.github.philippheuer.events4j.api.domain.IDisposable
  • Constructor Details

    • SimpleEventHandlerSubscription

      public SimpleEventHandlerSubscription(SimpleEventHandler simpleEventHandler, Class<?> eventType, Consumer<?> consumer)
  • Method Details

    • dispose

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

      public Class<?> getEventType()
    • getConsumer

      public Consumer<?> getConsumer()
    • isDisposed

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