-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e7dab2f
commit 3d23110
Showing
7 changed files
with
127 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 25 additions & 0 deletions
25
...api/src/main/java/com/jd/live/agent/governance/policy/service/loadbalance/StickyType.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
package com.jd.live.agent.governance.policy.service.loadbalance; | ||
|
||
/** | ||
* Defines the stickiness type for load balancing or session handling. | ||
*/ | ||
public enum StickyType { | ||
|
||
/** | ||
* No stickiness. Each request may be handled by any available provider | ||
* without preference. | ||
*/ | ||
NONE, | ||
|
||
/** | ||
* Preferred stickiness. Requests prefer to be handled by a previously | ||
* used provider but may fall back to others if necessary. | ||
*/ | ||
PREFERRED, | ||
|
||
/** | ||
* Fixed stickiness. Requests are strictly bound to a specific provider | ||
* once they have used it for the first time. | ||
*/ | ||
FIXED | ||
} |