Class Component

    • Field Detail

      • logger

        protected final Logger logger
        Logger instance
    • Constructor Detail

      • Component

        public Component()
    • Method Detail

      • sleep

        protected void sleep​(long milliseconds)
        Utility function to sleep for the specified amount of milliseconds. An InterruptedException will be catched and ignored while setting the interrupt flag again.
        Parameters:
        milliseconds - Time in milliseconds to sleep
      • triggerSimpleEvent

        protected void triggerSimpleEvent​(SimpleEventHandler handler)
        Utility function to trigger a simple event handler. If the handler is currently null it gets silently ignored.
        Parameters:
        handler - Event handler to call or null