public interface DriverConnectionStrategy
It gives the ability to create new sets of parameters whenever a connection attempt was unsuccessful, therefore providing the nodes with a failover strategy when the connection to a driver cannot be established.
DriverConnectionInfo nextConnectionInfo(DriverConnectionInfo currentInfo, ConnectionContext context)
DriverConnectionInfothat was previously used to connecto the driver, or
nullif the node is connecting for the first time.
context- provides information on why a new connection is requested, so as to help deciding which connection information to provide.
DriverConnectionInfoobject that the node will use to connect to the driver.
Copyright © 2005-2019 JPPF Team.