Example #1
0
 void init() {
   // on limite la taille pour éviter une éventuelle saturation mémoire
   if (isConnectionInformationsEnabled()
       && USED_CONNECTION_INFORMATIONS.size() < MAX_USED_CONNECTION_INFORMATIONS) {
     USED_CONNECTION_INFORMATIONS.put(
         ConnectionInformations.getUniqueIdOfConnection(connection),
         new ConnectionInformations());
   }
   USED_CONNECTION_COUNT.incrementAndGet();
   TRANSACTION_COUNT.incrementAndGet();
 }