Package com.atomikos.timing

Examples of com.atomikos.timing.AlarmTimerListener


      Configuration.logDebug ( this + ": using default maintenance interval..." );
      maintenanceInterval = DEFAULT_MAINTENANCE_INTERVAL;
    }
 
    maintenanceTimer = new PooledAlarmTimer ( maintenanceInterval * 1000 );
    maintenanceTimer.addAlarmTimerListener(new AlarmTimerListener() {
      public void alarm(AlarmTimer timer) {
        shrinkPool();
        reapPool();
      }
    });
View Full Code Here


    if ( maintenanceInterval <= 0 ) {
      if ( LOGGER.isDebugEnabled() ) LOGGER.logDebug ( this + ": using default maintenance interval..." );
      maintenanceInterval = DEFAULT_MAINTENANCE_INTERVAL;
    }
    maintenanceTimer = new PooledAlarmTimer ( maintenanceInterval * 1000 );
    maintenanceTimer.addAlarmTimerListener(new AlarmTimerListener() {
      public void alarm(AlarmTimer timer) {
        reapPool();
        removeConnectionsThatExceededMaxLifetime();
        addConnectionsIfMinPoolSizeNotReached();
        removeIdleConnectionsIfMinPoolSizeExceeded();
View Full Code Here

      if ( LOGGER.isDebugEnabled() ) LOGGER.logDebug ( this + ": using default maintenance interval..." );
      maintenanceInterval = DEFAULT_MAINTENANCE_INTERVAL;
    }

    maintenanceTimer = new PooledAlarmTimer ( maintenanceInterval * 1000 );
    maintenanceTimer.addAlarmTimerListener(new AlarmTimerListener() {
      public void alarm(AlarmTimer timer) {
        shrinkPool();
        reapPool();
      }
    });
View Full Code Here

    if ( maintenanceInterval <= 0 ) {
      if ( LOGGER.isDebugEnabled() ) LOGGER.logDebug ( this + ": using default maintenance interval..." );
      maintenanceInterval = DEFAULT_MAINTENANCE_INTERVAL;
    }
    maintenanceTimer = new PooledAlarmTimer ( maintenanceInterval * 1000 );
    maintenanceTimer.addAlarmTimerListener(new AlarmTimerListener() {
      public void alarm(AlarmTimer timer) {
        reapPool();
        removeConnectionsThatExceededMaxLifetime();
        addConnectionsIfMinPoolSizeNotReached();
        removeIdleConnectionsIfMinPoolSizeExceeded();
View Full Code Here

      if ( Configuration.isDebugLoggingEnabled() ) Configuration.logDebug ( this + ": using default maintenance interval..." );
      maintenanceInterval = DEFAULT_MAINTENANCE_INTERVAL;
    }
 
    maintenanceTimer = new PooledAlarmTimer ( maintenanceInterval * 1000 );
    maintenanceTimer.addAlarmTimerListener(new AlarmTimerListener() {
      public void alarm(AlarmTimer timer) {
        shrinkPool();
        reapPool();
      }
    });
View Full Code Here

TOP

Related Classes of com.atomikos.timing.AlarmTimerListener

Copyright © 2018 www.massapicom. 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.