Examples of PooledConnectionReapedEvent


Examples of com.atomikos.datasource.pool.event.PooledConnectionReapedEvent

      long now = System.currentTimeMillis();
      if ( inUse && ( ( now - maxInUseTime * 1000 ) > lastTimeReleased ) ) {
        if ( LOGGER.isDebugEnabled() ) LOGGER.logDebug ( this + ": connection in use for more than " + maxInUseTime + "s, reaping it: " + xpc );
        xpc.reap();
        EventPublisher.publish(new PooledConnectionReapedEvent(properties.getUniqueResourceName(),xpc));
      }
    }
    logCurrentPoolSize();
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.