Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
B
brpc
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
brpc
Commits
8e352c54
Commit
8e352c54
authored
Oct 15, 2018
by
TousakaRin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add comments
parent
443b0c2b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
circuit_breaker.h
src/brpc/circuit_breaker.h
+5
-1
No files found.
src/brpc/circuit_breaker.h
View file @
8e352c54
...
...
@@ -38,11 +38,15 @@ public:
// ensure that no one else is calling OnCallEnd.
void
Reset
();
// Not thread-safe
// Mark the Socket as broken. You should NOT call this method multiple
// times in succession.
void
MarkAsBroken
();
// The closer to 100, the less recent errors occurred, and 0 means that
// it should be isolated.
int
health_index_in_percent
()
const
;
// Number of times marked as broken
int
broken_times
()
const
{
return
_broken_times
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment