 @objc
 public class ShortCircuitFactory : NSObject {
   
-  public static func getInMemoryInstance(maxFailures:Int = 20, retryTimeout:Int = 20) -> CircuitBreakerProtocol {
+  public static func getInMemoryInstance(maxFailures:Int = 20, retryTimeout:Int = 20) -> CircuitBreaker {
     let storage = MemoryAdapter()
     return ShortCircuit(storage: storage, maxFailures: maxFailures, retryTimeout: retryTimeout)
   }
   
-  public static func getNSUserDefaultsInstance(maxFailures:Int = 20, retryTimeout:Int = 20) -> CircuitBreakerProtocol {
+  public static func getNSUserDefaultsInstance(maxFailures:Int = 20, retryTimeout:Int = 20) -> CircuitBreaker {
     let storage = NSUserDefaultsAdapter()
     return ShortCircuit(storage: storage, maxFailures: maxFailures, retryTimeout: retryTimeout)
   }
 }
 
 @objc
-public class ShortCircuit : NSObject, CircuitBreakerProtocol {
-    
-    var storageAdapter:CircuitBreakerStorageProtocol
+public class ShortCircuit : NSObject, CircuitBreaker {
+    
+    var storageAdapter:CircuitBreakerStorage
     
     var defaultMaxFailures:Int
     

    }
}

class MemoryAdapter : NSObject, CircuitBreakerStorageProtocol {
    
    var data : [String: [String:Int]] = [:]
    

}

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