Package me.playernguyen.opteco.schedule
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
-
Constructor Details
-
CloseConnectionRunnable
public CloseConnectionRunnable(java.sql.Connection connection)
-
-
Method Details
-
getConnection
public java.sql.Connection getConnection() -
run
public void run()This to close the connection after timeout
-