Class CloseConnectionRunnable

java.lang.Object
org.bukkit.scheduler.BukkitRunnable
me.playernguyen.opteco.schedule.OptEcoRunnable
me.playernguyen.opteco.schedule.CloseConnectionRunnable
All Implemented Interfaces:
java.lang.Runnable

public class CloseConnectionRunnable
extends OptEcoRunnable
  • Constructor Summary

    Constructors 
    Constructor Description
    CloseConnectionRunnable​(java.sql.Connection connection)  
  • Method Summary

    Modifier and Type Method Description
    java.sql.Connection getConnection()  
    void run()
    This to close the connection after timeout

    Methods inherited from class me.playernguyen.opteco.schedule.OptEcoRunnable

    getInstance

    Methods inherited from class org.bukkit.scheduler.BukkitRunnable

    cancel, getTaskId, isCancelled, runTask, runTaskAsynchronously, runTaskLater, runTaskLaterAsynchronously, runTaskTimer, runTaskTimerAsynchronously

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • getConnection

      public java.sql.Connection getConnection()
    • run

      public void run()
      This to close the connection after timeout