finicu212

Untitled

Nov 11th, 2022
19
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.69 KB | None | 0 0
  1. @startuml
  2.  
  3. title "Connection Pool Sequence Diagram"
  4.  
  5. actor User
  6. control ConnectionPool as POOL
  7. control ConnectionFactory as F
  8. entity Connection as C
  9.  
  10. User -> POOL: getConnection(FTP)
  11. POOL -> POOL: Check available
  12. POOL -> F: newConnection(FTP)
  13. F -> C: <<constructor call>>
  14. C -> F: <<connection>>
  15. F -> POOL: <<connection>>
  16. POOL -> POOL: Increment used connection counts
  17. POOL -> User: <<connection>>
  18. User -> User: Do stuff with conn
  19. User -> POOL: releaseConnection()
  20.  
  21.  
  22.  
  23. User -> POOL: getConnection(FTP)
  24. POOL -> POOL: Check available
  25. POOL -> User: <<connection>>
  26. User -> User: Do stuff with conn
  27. User -> POOL: releaseConnection()
  28. POOL -> POOL: timeout connection
  29.  
  30.  
  31.  
  32. @enduml
Advertisement
Add Comment
Please, Sign In to add comment