mirror of
https://github.com/tiennm99/java-design-patterns.git
synced 2026-05-26 00:00:51 +00:00
deps: update maven
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
@startuml
|
||||
package com.iluwatar {
|
||||
abstract class AbstractThreadLocalExample {
|
||||
- RANDOM_THREAD_PARK_END : Integer {static}
|
||||
- RANDOM_THREAD_PARK_START : Integer {static}
|
||||
- RND : SecureRandom {static}
|
||||
+ AbstractThreadLocalExample()
|
||||
- getThreadName() : String
|
||||
# getter() : Supplier<Integer> {abstract}
|
||||
+ run()
|
||||
# setter() : Consumer<Integer> {abstract}
|
||||
}
|
||||
class WithThreadLocal {
|
||||
- value : ThreadLocal<Integer>
|
||||
+ WithThreadLocal(value : ThreadLocal<Integer>)
|
||||
# getter() : Supplier<Integer>
|
||||
+ remove()
|
||||
# setter() : Consumer<Integer>
|
||||
}
|
||||
class WithoutThreadLocal {
|
||||
- value : Integer
|
||||
+ WithoutThreadLocal(value : Integer)
|
||||
# getter() : Supplier<Integer>
|
||||
# setter() : Consumer<Integer>
|
||||
}
|
||||
}
|
||||
WithThreadLocal --|> AbstractThreadLocalExample
|
||||
WithoutThreadLocal --|> AbstractThreadLocalExample
|
||||
@enduml
|
||||
Reference in New Issue
Block a user