Work on #190: Add first batch of automagically generated puml files
This commit is contained in:
30
half-sync-half-async/etc/half-sync-half-async.urm.puml
Normal file
30
half-sync-half-async/etc/half-sync-half-async.urm.puml
Normal file
@ -0,0 +1,30 @@
|
||||
@startuml
|
||||
package com.iluwatar.halfsynchalfasync {
|
||||
class App {
|
||||
+ App()
|
||||
- ap(i : long) : long {static}
|
||||
+ main(args : String[]) {static}
|
||||
}
|
||||
interface AsyncTask<O> {
|
||||
+ call() : O {abstract}
|
||||
+ onError(Throwable) {abstract}
|
||||
+ onPostCall(O) {abstract}
|
||||
+ onPreCall() {abstract}
|
||||
}
|
||||
~class ArithmeticSumTask {
|
||||
- n : long
|
||||
+ ArithmeticSumTask(n : long)
|
||||
+ call() : Long
|
||||
+ onError(throwable : Throwable)
|
||||
+ onPostCall(result : Long)
|
||||
+ onPreCall()
|
||||
}
|
||||
class AsynchronousService {
|
||||
- service : ExecutorService
|
||||
+ AsynchronousService(workQueue : BlockingQueue<Runnable>)
|
||||
+ execute(task : AsyncTask<T>)
|
||||
}
|
||||
}
|
||||
ArithmeticSumTask ..+ App
|
||||
ArithmeticSumTask ..|> AsyncTask
|
||||
@enduml
|
Reference in New Issue
Block a user