#1510 Update class diagram
This commit is contained in:
parent
b689fe0a26
commit
242ae6a412
Binary file not shown.
Before Width: | Height: | Size: 77 KiB After Width: | Height: | Size: 79 KiB |
@ -8,7 +8,7 @@ package com.iluwatar.circuitbreaker {
|
|||||||
interface CircuitBreaker {
|
interface CircuitBreaker {
|
||||||
+ attemptRequest() : String {abstract}
|
+ attemptRequest() : String {abstract}
|
||||||
+ getState() : String {abstract}
|
+ getState() : String {abstract}
|
||||||
+ recordFailure() {abstract}
|
+ recordFailure(String) {abstract}
|
||||||
+ recordSuccess() {abstract}
|
+ recordSuccess() {abstract}
|
||||||
+ setState(State) {abstract}
|
+ setState(State) {abstract}
|
||||||
}
|
}
|
||||||
@ -16,6 +16,7 @@ package com.iluwatar.circuitbreaker {
|
|||||||
~ failureCount : int
|
~ failureCount : int
|
||||||
- failureThreshold : int
|
- failureThreshold : int
|
||||||
- futureTime : long
|
- futureTime : long
|
||||||
|
- lastFailureResponse : String
|
||||||
~ lastFailureTime : long
|
~ lastFailureTime : long
|
||||||
- retryTimePeriod : long
|
- retryTimePeriod : long
|
||||||
- service : RemoteService
|
- service : RemoteService
|
||||||
@ -25,7 +26,7 @@ package com.iluwatar.circuitbreaker {
|
|||||||
+ attemptRequest() : String
|
+ attemptRequest() : String
|
||||||
# evaluateState()
|
# evaluateState()
|
||||||
+ getState() : String
|
+ getState() : String
|
||||||
+ recordFailure()
|
+ recordFailure(response : String)
|
||||||
+ recordSuccess()
|
+ recordSuccess()
|
||||||
+ setState(state : State)
|
+ setState(state : State)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user