Reference documentation and code samples for the Cloud Bigtable V2 Client class SessionDiversionConfiguration.
Configuration for how to divert load to sessions. Internal usage only.
Generated from protobuf message google.bigtable.v2.SessionDiversionConfiguration
Namespace
Google \ Cloud \ Bigtable \ V2Methods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ global_diversion |
SessionScopeDiversionConfiguration
If provided, all scopes should use this diversion config. |
↳ per_scope_diversion |
SessionDiversionConfiguration\PerScopeDiversion
Diversion happens per-scope. |
getGlobalDiversion
If provided, all scopes should use this diversion config.
| Returns | |
|---|---|
| Type | Description |
SessionScopeDiversionConfiguration|null |
|
hasGlobalDiversion
setGlobalDiversion
If provided, all scopes should use this diversion config.
| Parameter | |
|---|---|
| Name | Description |
var |
SessionScopeDiversionConfiguration
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getPerScopeDiversion
Diversion happens per-scope.
| Returns | |
|---|---|
| Type | Description |
SessionDiversionConfiguration\PerScopeDiversion|null |
|
hasPerScopeDiversion
setPerScopeDiversion
Diversion happens per-scope.
| Parameter | |
|---|---|
| Name | Description |
var |
SessionDiversionConfiguration\PerScopeDiversion
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getDiversionStrategy
| Returns | |
|---|---|
| Type | Description |
string |
|