1 23 package com.lutris.appserver.server.sql; 24 25 import java.util.Date ; 26 27 36 public interface ConnectionAllocator { 37 38 44 DBConnection allocate() throws java.sql.SQLException ; 45 46 52 void release(DBConnection dbConnection); 53 54 61 void drop(DBConnection dbConnection); 62 63 66 void dropAllNow(); 67 68 73 public int getActiveCount(); 74 75 80 public int getMaxCount(); 81 82 88 public Date getMaxCountDate(); 89 90 93 public void resetMaxCount(); 94 95 104 public long getRequestCount(); 105 106 110 public String getDatabaseName(); 111 112 } 113 | Popular Tags |