     }
 }
 
-class MemoryAdapter : NSObject, CircuitBreakerStorageProtocol {
+class MemoryAdapter : NSObject, CircuitBreakerStorage {
     
     var data : [String: [String:Int]] = [:]
     

import Foundation

@objc
public protocol CircuitBreakerProtocol {
    func isAvailable (serviceName: String) -> Bool
    func reportFailure (serviceName: String) -> Void
    func reportSuccess (serviceName: String) -> Void

}

@objc
protocol CircuitBreakerStorage {
    func loadStatus(serviceName: String, attributeName: String) -> Int
    func saveStatus(serviceName: String, attributeName: String, statusValue: Int, flush: Bool) -> Void
}
