Click or drag to resize

ReplicationServerGroup Class

Base class used to implement load balancing features.
Inheritance Hierarchy

Namespace:  MySql.Data.MySqlClient.Replication
Assembly:  MySql.Data (in MySql.Data.dll) Version: 8.0.22
Syntax
public abstract class ReplicationServerGroup

The ReplicationServerGroup type exposes the following members.

Constructors
  NameDescription
Public methodReplicationServerGroup
Initializes a new instance of the ReplicationServerGroup class
Top
Properties
  NameDescription
Public propertyName
Gets the group name.
Public propertyRetryTime
Gets the retry time between connections to failed servers.
Protected propertyServers
Gets the server list in the group.
Top
Methods
  NameDescription
Protected methodAddServer
Adds a server into the group.
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Protected methodGetServer(Boolean)
Must be implemented. Defines the next server for a custom load balancing implementation.
Protected methodGetServer(String)
Gets a server by name.
Protected methodGetServer(Boolean, MySqlConnectionStringBuilder)
Defines the next server for a custom load balancing implementation.
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodHandleFailover(ReplicationServer)
Handles a failed connection to a server.
Protected methodHandleFailover(ReplicationServer, Exception)
Handles a failed connection to a server.
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Protected methodRemoveServer
Removes a server from the group.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Fields
  NameDescription
Protected fieldservers
List of servers available for replication.
Top
See Also