Adding class diag and updating readme
This commit is contained in:
@ -1,49 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<class-diagram version="1.2.1" icons="true" always-add-relationships="false" generalizations="true" realizations="true"
|
||||
associations="true" dependencies="false" nesting-relationships="true" router="FAN">
|
||||
<class id="1" language="java" name="com.iluwatar.tls.B2BService" project="throttling"
|
||||
file="/throttling/src/main/java/com/iluwatar/tls/B2BService.java" binary="false" corner="BOTTOM_RIGHT">
|
||||
<position height="-1" width="-1" x="804" y="214"/>
|
||||
<display autosize="true" stereotype="true" package="true" initial-value="false" signature="true"
|
||||
sort-features="false" accessors="true" visibility="true">
|
||||
<attributes public="true" package="true" protected="true" private="true" static="true"/>
|
||||
<operations public="true" package="true" protected="true" private="true" static="true"/>
|
||||
</display>
|
||||
</class>
|
||||
<class id="2" language="java" name="com.iluwatar.tls.Tenant" project="throttling"
|
||||
file="/throttling/src/main/java/com/iluwatar/tls/Tenant.java" binary="false" corner="BOTTOM_RIGHT">
|
||||
<position height="-1" width="-1" x="577" y="484"/>
|
||||
<display autosize="true" stereotype="true" package="true" initial-value="false" signature="true"
|
||||
sort-features="false" accessors="true" visibility="true">
|
||||
<attributes public="true" package="true" protected="true" private="true" static="true"/>
|
||||
<operations public="true" package="true" protected="true" private="true" static="true"/>
|
||||
</display>
|
||||
</class>
|
||||
<class id="3" language="java" name="com.iluwatar.tls.App" project="throttling"
|
||||
file="/throttling/src/main/java/com/iluwatar/tls/App.java" binary="false" corner="BOTTOM_RIGHT">
|
||||
<position height="137" width="223" x="267" y="135"/>
|
||||
<display autosize="true" stereotype="true" package="true" initial-value="false" signature="true"
|
||||
sort-features="false" accessors="true" visibility="true">
|
||||
<attributes public="true" package="true" protected="true" private="true" static="true"/>
|
||||
<operations public="true" package="true" protected="true" private="true" static="true"/>
|
||||
</display>
|
||||
</class>
|
||||
<association id="4">
|
||||
<end type="SOURCE" refId="1" navigable="false">
|
||||
<attribute id="5" name="tenant"/>
|
||||
<multiplicity id="6" minimum="0" maximum="1"/>
|
||||
</end>
|
||||
<end type="TARGET" refId="2" navigable="true"/>
|
||||
<display labels="true" multiplicity="true"/>
|
||||
</association>
|
||||
<dependency id="7">
|
||||
<end type="SOURCE" refId="3"/>
|
||||
<end type="TARGET" refId="1"/>
|
||||
</dependency>
|
||||
<classifier-display autosize="true" stereotype="true" package="true" initial-value="false" signature="true"
|
||||
sort-features="false" accessors="true" visibility="true">
|
||||
<attributes public="true" package="true" protected="true" private="true" static="true"/>
|
||||
<operations public="true" package="true" protected="true" private="true" static="true"/>
|
||||
</classifier-display>
|
||||
<association-display labels="true" multiplicity="true"/>
|
||||
</class-diagram>
|
BIN
throttling/etc/throttling-patern.png
Normal file
BIN
throttling/etc/throttling-patern.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 66 KiB |
@ -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
|
Reference in New Issue
Block a user