public interface FailoverRunnable
Modifier and Type | Method and Description |
---|---|
void |
run(java.sql.Connection con)
This method needs to be implemented if you want to use the Cluster failover feature of the PoolManager.
|
void run(java.sql.Connection con) throws java.sql.SQLException
This method can executed repeatedly and rolled back subsequently. At first you should reset all modified objects. For example if you have a stream for an html page then you should reset the stream first. In case of a failover the html page be written repeatedly to the stream.
con
- the connectionjava.sql.SQLException
- if a database access error occursPoolManager.executeFailover(javax.sql.ConnectionPoolDataSource, com.inet.pool.FailoverRunnable)
,
PoolManager.setFailoverCount(int)
,
PoolManager.setFailoverTimeout(int)
copyright by i-net software