bitronix.tm.timer
Class PoolShrinkingTask

java.lang.Object
  extended by bitronix.tm.timer.Task
      extended by bitronix.tm.timer.PoolShrinkingTask

public class PoolShrinkingTask
extends Task

This task is used to notify a XA pool to close idle connections.

© Bitronix Software

Author:
lorban

Constructor Summary
PoolShrinkingTask(XAPool xaPool, java.util.Date executionTime, TaskScheduler scheduler)
           
 
Method Summary
 void execute()
           
 java.lang.Object getObject()
           
 java.lang.String toString()
           
 
Methods inherited from class bitronix.tm.timer.Task
getExecutionTime, getTaskScheduler, setExecutionTime
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PoolShrinkingTask

public PoolShrinkingTask(XAPool xaPool,
                         java.util.Date executionTime,
                         TaskScheduler scheduler)
Method Detail

getObject

public java.lang.Object getObject()
Specified by:
getObject in class Task

execute

public void execute()
             throws TaskException
Specified by:
execute in class Task
Throws:
TaskException

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object