|
i-net JDBC drivers for MS SQL Server | |||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface FailoverRunnable
The FailoverRunnable interface should be implemented by any class whose instances are intended to be executed with a Cluster and should have a failover. The class must define a method with one argument called run.
Method Summary | |
---|---|
void |
run(java.sql.Connection con)
This method needs to be implemented if you want to use the Cluster failover feature of the PoolManager. |
Method Detail |
---|
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.
java.sql.SQLException
PoolManager.executeFailover(javax.sql.ConnectionPoolDataSource, com.inet.pool.FailoverRunnable)
,
PoolManager.setFailoverCount(int)
,
PoolManager.setFailoverTimeout(int)
|
i-net JDBC drivers for MS SQL Server | |||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |