offlinetransmission.plantuml 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. @startuml OfflineTranmission
  2. header Message OfflineTranmission
  3. left to right direction
  4. skinparam actorStyle awesome
  5. skinparam usecase {
  6. BackgroundColor<< Publisher >> Pink
  7. BorderColor<< Publisher >> Red
  8. BackgroundColor<< Subscriber >> YellowGreen
  9. BorderColor<< Subscriber >> Green
  10. }
  11. package PublisherSite {
  12. actor "Publisher" as Publisher #pink;line:red;line.bold;text:red
  13. (Parent) as (parentPub) << Publisher >>
  14. usecase "Parent" as parentPub
  15. () "Proxy" as proxy1
  16. }
  17. package SubscriberSite {
  18. () "Proxy" as proxy2
  19. () "Proxy" as proxy3
  20. (Parent) as (parentSub) << Subscriber >>
  21. actor "Subscriber" as Subscriber1 #YellowGreen;line:green;line.bold;text:Green
  22. actor "Subscriber" as Subscriber2 #cyan;line:blue;line.bold;text:blue
  23. }
  24. ' note "<b><size:18>Blue COLOR</size></b> is the \nfirst triggering mechanism for \noffline transmission." as N1
  25. ' note "<b><size:18>Red COLOR</size></b> is the \nfirst line of streaming." as N2
  26. ' note "Internet Connection Interrupted" as N3
  27. proxy1 <-- Publisher #line:Red;text:Red : Publish data to \ndesignated subsriber \nover proxy
  28. parentPub <-- Publisher : If internet is \ndown, NOTIFY \nparent publisher
  29. proxy2 --> Subscriber1 #line:Red;text:Red : Receive data \nfrom Publisher
  30. parentPub --> parentSub #line:blue;line.bold;text:Blue : Notify Internet \nWas Offline \nPlease Subscribe \nAgain
  31. proxy2 . proxy1 #line:Red;text:Red : Internet Connection \nInterruption
  32. ' N3 . proxy2 #line:Red;text:Red
  33. proxy3 <-- Subscriber2 #line:Blue;text:Blue : Subcribe to Publisher \nvia new Proxxy
  34. proxy1 . proxy3 #line:Blue;text:Blue : Subscribe to proxy \n to continue receiving \ndata
  35. Subscriber2 <-- parentSub #line:Blue;text:Blue : Instantiate a \nnew Subsscriber
  36. parentSub <-- Subscriber1 : Persists data \nreceived from \nPublisher
  37. @enduml