Class SteamCache

java.lang.Object
tv.phantombot.cache.SteamCache
All Implemented Interfaces:
Runnable

public class SteamCache extends Object implements Runnable
  • Method Details

    • instance

      public static SteamCache instance(String channelName)
      Method that returns this instance.
      Parameters:
      channelName -
      Returns:
    • run

      public void run()
      Run method that runs on a new thread and sleeps every 30 minutes.
      Specified by:
      run in interface Runnable
    • getGameID

      public String getGameID(String gameName)
      Method that returns the game ID, or null if it doesn't exist.
      Parameters:
      gameName -
      Returns:
    • kill

      public void kill()
      Method that kills the run thread.
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object