Class EventHandler

  • All Implemented Interfaces:
    Runnable

    public class EventHandler
    extends Thread
    Author:
    man
    • Constructor Detail

      • EventHandler

        public EventHandler​(String identifier)
        Parameters:
        identifier - instance name Create a new instance
    • Method Detail

      • run

        public void run()
        Specified by:
        run in interface Runnable
        Overrides:
        run in class Thread
      • halt

        public void halt()
        Stop the thread
      • addEvent

        public void addEvent​(RfidEvent event)
        Add a event to the internal buffer
        Parameters:
        event - the RfidEvent
      • setListener

        public void setListener​(RfidEventListener listener)
        Parameters:
        listener - the listener to set