Class GenericEventHandler<T extends com.fluxtion.api.event.GenericEvent<W>,​W>

java.lang.Object
com.fluxtion.ext.streaming.api.GenericEventHandler<T,​W>
All Implemented Interfaces:
com.fluxtion.api.FilteredEventHandler<T>

public final class GenericEventHandler<T extends com.fluxtion.api.event.GenericEvent<W>,​W>
extends java.lang.Object
implements com.fluxtion.api.FilteredEventHandler<T>
 EventHandler for GenericEvent's. GeneriEvents can wrap any type of
 Object, thus allowing non-fluxtion Event's to be handled as an entry
 point in a SEP.


 
  • Field Summary

    Fields 
    Modifier and Type Field Description
    T event  
  • Constructor Summary

    Constructors 
    Constructor Description
    GenericEventHandler()  
  • Method Summary

    Modifier and Type Method Description
    W event()  
    java.lang.Class<T> eventClass()  
    int filterId()  
    java.lang.String filterString()  
    void onEvent​(T e)  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.fluxtion.api.FilteredEventHandler

    afterEvent
  • Field Details

    • event

      public T extends com.fluxtion.api.event.GenericEvent<W> event
  • Constructor Details

  • Method Details

    • filterId

      public int filterId()
      Specified by:
      filterId in interface com.fluxtion.api.FilteredEventHandler<T extends com.fluxtion.api.event.GenericEvent<W>>
    • filterString

      public java.lang.String filterString()
      Specified by:
      filterString in interface com.fluxtion.api.FilteredEventHandler<T extends com.fluxtion.api.event.GenericEvent<W>>
    • onEvent

      public void onEvent​(T e)
      Specified by:
      onEvent in interface com.fluxtion.api.FilteredEventHandler<T extends com.fluxtion.api.event.GenericEvent<W>>
    • eventClass

      public java.lang.Class<T> eventClass()
      Specified by:
      eventClass in interface com.fluxtion.api.FilteredEventHandler<T extends com.fluxtion.api.event.GenericEvent<W>>
    • event

      public W event()