Class RunnableQueueItem

  • All Implemented Interfaces:
    java.lang.Runnable

    public class RunnableQueueItem
    extends java.lang.Object
    implements java.lang.Runnable
    Represents a runnable waiting to be launched by the ThreadLauncherDaemon
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getKey()
      Get the key that identifies the runnable.
      Plugin getPlugin()
      Get the plugin that created the runnable
      java.lang.Runnable getRunnable()
      Get the runnable that is waiting for its execution
      void run()
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • RunnableQueueItem

        public RunnableQueueItem​(java.lang.Runnable runnable,
                                 java.lang.String strKey,
                                 Plugin plugin)
        Creates a new RunnableQueueItem
        Parameters:
        runnable - The runnable waiting to bet launched
        strKey - The key associated with the runnable. Runnables of a given plugin are ensured that they will not be executed at the same time if they have the same key.
        plugin - The plugin associated with the runnable queue item
    • Method Detail

      • run

        public void run()
        Specified by:
        run in interface java.lang.Runnable
      • getRunnable

        public java.lang.Runnable getRunnable()
        Get the runnable that is waiting for its execution
        Returns:
        The runnable
      • getKey

        public java.lang.String getKey()
        Get the key that identifies the runnable.
        Returns:
        the key of the runnable
      • getPlugin

        public Plugin getPlugin()
        Get the plugin that created the runnable
        Returns:
        The plugin that created the runnable