Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

147 circuit breaker #1201

Merged
merged 1 commit into from
Aug 9, 2015
Merged

Conversation

MAOliver
Copy link
Contributor

@MAOliver MAOliver commented Aug 3, 2015

#147

  • Add CircuitBreaker to codebase
  • Add AtomicState, IAtomicState, OpenState, HalfOpenState, ClosedState, CircuitBreakerSpec

Ultimately I wound up ignoring the IScheduler and ExecutionContext / SynchronizationContext. I have implemented the tests from the Akka.io CircuitBreakerSpec tests and we can always come back later and add in the scheduler and execution context in a later commit and add suitable default values to a constructor.

/// inappropriate time. In other words, the Java environment or
/// Java application is not in an appropriate state for the requested
/// operation.
/// </summary>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This summary is quite inappropriate here.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Horusiath I missed that one -- will correct and resubmit the pull request

@MAOliver MAOliver force-pushed the 147_CircuitBreaker branch 2 times, most recently from 5789005 to d8aaed5 Compare August 9, 2015 04:32
- Add passing tests from akka 2.0.5
- Add CircuitBreakerState.cs with Open, HalfOpen, and Closed states
- Add AtomicState which extends AtomicLong (mirrors functionality of State trait)
- Add OpenCircuitException
- Add CircuitBreaker documentation
- Remove Scheduler from current implementation
- Remove inappropriate xmldoc on illegalstateexception
- Update flow on AtomicState::CallThrough method to be clearer and more closely match original
- Add clarifying comments on "Fire and forget" NotifyTransitionListeners
@MAOliver MAOliver force-pushed the 147_CircuitBreaker branch from d8aaed5 to 7e16834 Compare August 9, 2015 04:39
@MAOliver
Copy link
Contributor Author

MAOliver commented Aug 9, 2015

@rogeralsing @Horusiath let me know if this works. I squashed all the commits.

rogeralsing added a commit that referenced this pull request Aug 9, 2015
@rogeralsing rogeralsing merged commit eb487fe into akkadotnet:dev Aug 9, 2015
@MAOliver MAOliver deleted the 147_CircuitBreaker branch August 9, 2015 14:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants