Examples of PooledAlarmTimer


Examples of com.atomikos.timing.PooledAlarmTimer

          // so do nothing

        } else {

          stateHandler_.activate ();
          timer_ = new PooledAlarmTimer(timeout);
          timer_.addAlarmTimerListener(this);
          submitTimer(timer_);
        }
      }
View Full Code Here

Examples of com.atomikos.timing.PooledAlarmTimer

    if ( maintenanceInterval <= 0 ) {
      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

Examples of com.atomikos.timing.PooledAlarmTimer

    {
       
      synchronized ( fsm_ ) {
        if ( timer_ == null ) { //not null for repeated recovery
          stateHandler_.activate ();
          timer_ = new PooledAlarmTimer(timeout);
          timer_.addAlarmTimerListener(this);
          submitTimer(timer_);
        }
      }
View Full Code Here

Examples of com.atomikos.timing.PooledAlarmTimer

    int maintenanceInterval = properties.getMaintenanceInterval();
    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();
View Full Code Here

Examples of com.atomikos.timing.PooledAlarmTimer

    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) {
        shrinkPool();
        reapPool();
      }
View Full Code Here

Examples of com.atomikos.timing.PooledAlarmTimer

          // so do nothing

        } else {

          stateHandler_.activate ();
          timer_ = new PooledAlarmTimer(timeout);
          timer_.addAlarmTimerListener(this);
          submitTimer(timer_);
        }
      }
View Full Code Here

Examples of com.atomikos.timing.PooledAlarmTimer

    int maintenanceInterval = properties.getMaintenanceInterval();
    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();
View Full Code Here

Examples of com.atomikos.timing.PooledAlarmTimer

    if ( maintenanceInterval <= 0 ) {
      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

Examples of com.atomikos.timing.PooledAlarmTimer

    {
       
      synchronized ( fsm_ ) {
        if ( timer_ == null ) { //not null for repeated recovery
          stateHandler_.activate ();
          timer_ = new PooledAlarmTimer(timeout);
          timer_.addAlarmTimerListener(this);
          submitTimer(timer_);
        }
      }
View Full Code Here

Examples of com.atomikos.timing.PooledAlarmTimer

    {
       
      synchronized ( fsm_ ) {
        if ( timer_ == null ) { //not null for repeated recovery
          stateHandler_.activate ();
          timer_ = new PooledAlarmTimer(timeout);
          timer_.addAlarmTimerListener(this);
          submitTimer(timer_);
        }
      }
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.