Adding class diag and updating readme

This commit is contained in:
Deepanshu Rastogi
2017-09-07 15:27:18 +02:00
parent 2cf773e550
commit 5f9100cd03
9 changed files with 143 additions and 49 deletions

View File

@ -1,2 +1,29 @@
@startuml
package com.iluwatar.tls {
class App {
- LOGGER : Logger {static}
+ App()
+ main(args : String[]) {static}
- makeServiceCalls(service : B2BService) {static}
}
~class B2BService {
- LOGGER : Logger {static}
- callsCounter : int
- tenant : Tenant
+ B2BService(tenant : Tenant)
+ dummyCustomerApi() : int
+ getCurrentCallsCount() : int
- getRandomCustomerId() : int
}
class Tenant {
- allowedCallsPerSecond : int
- name : String
+ Tenant(name : String, allowedCallsPerSecond : int)
+ getAllowedCallsPerSecond() : int
+ getName() : String
+ setAllowedCallsPerSecond(allowedCallsPerSecond : int)
+ setName(name : String)
}
}
B2BService --> "-tenant" Tenant
@enduml