From Eager Futures/Promises to Lazy Continuations: Evolving an Actor Library Based on Lessons Learned
From Eager Futures/Promises to Lazy Continuations Evolving an Actor Library Based on Lessons Learned from Large-Scale Deployments Benjamin Hindman @benh CppCon 2021prologue ● past life at UC whether local or distributed“actors” in C++ many actor libraries are based on low-level message-passing “send/receive” struct MyActor : public Actor { void Receive(ActorId sender, Message message, MESSAGE_BAR_REQUEST: ... } } };“actors” in C++ many actor libraries are based on low-level message-passing “send/receive” struct MyActor : public Actor { void Receive(ActorId sender, Message message,0 码力 | 264 页 | 588.96 KB | 5 月前3Spring Framwork Data Access v5.3.36 SNAPSHOT
jdbcTemplate.queryForObject("select count(*) from t_actor", Integer.class); Kotlin val rowCount = jdbcTemplate.queryForObject("select count(*) from t_actor")!! The following query uses a bind variable: "select count(*) from t_actor where first_name = ?", Integer.class, "Joe"); Kotlin val countOfActorsNamedJoe = jdbcTemplate.queryForObject ( "select count(*) from t_actor where first_name = "select last_name from t_actor where id = ?", String.class, 1212L); Kotlin val lastName = this.jdbcTemplate.queryForObject ( "select last_name from t_actor where id = ?", 0 码力 | 197 页 | 2.76 MB | 1 年前3PlantUML 1.2021.3 Language Reference Guide
the participant represen- tation: • actor • boundary • control • entity • database • collections • queue @startuml participant participant as Foo actor actor as Foo1 boundary boundary as Foo2 control Foo4 database database as Foo5 collections collections as Foo6 queue queue as Foo7 Foo -> Foo1 : To actor PlantUML Language Reference Guide (1.2021.2) 1 / 415 1.2 Declaring participant 1 SEQUENCE DIAGRAM the as keyword. You can also change the background color of actor or participant. @startuml actor Bob #red ' The only difference between actor 'and participant is the drawing participant Alice participant0 码力 | 416 页 | 4.33 MB | 1 年前3PlantUML 1.2021.3 언어참조가이드
participant 키워드를이용하여참여자의순서를바꿀수있다. 또한, 참여자선언에다음과같은키워드를사용할수있다. • actor • boundary • control • entity • database • collections @startuml actor Foo1 boundary Foo2 control Foo3 entity Foo4 database Foo5 collections (participant) 선언 1 시퀀스다이어그램 as 키워드를이용하여참여자의이름을변경할수있다. 또한, 참여자 (actor, participant) 의배경색을변경할수도있다. @startuml actor Bob #red ' The only difference between actor 'and participant is the drawing participant Alice participant 407 1.20 참조 1 시퀀스다이어그램 1.20 참조 ref over 키워드를이용하여, 다이어그램에참조를표시할수있다. @startuml participant Alice actor Bob ref over Alice, Bob : init Alice -> Bob : hello ref over Bob This can be on several lines end0 码力 | 408 页 | 4.32 MB | 1 年前3PlantUML 1.2021.1 Language Reference Guide
the participant represen- tation: • actor • boundary • control • entity • database • collections • queue @startuml participant participant as Foo actor actor as Foo1 boundary boundary as Foo2 control Foo4 database database as Foo5 collections collections as Foo6 queue queue as Foo7 Foo -> Foo1 : To actor PlantUML Language Reference Guide (1.2021.1) 1 / 391 1.2 Declaring participant 1 SEQUENCE DIAGRAM the as keyword. You can also change the background color of actor or participant. @startuml actor Bob #red ' The only difference between actor 'and participant is the drawing participant Alice participant0 码力 | 392 页 | 4.12 MB | 1 年前3PlantUML 1.2021.2 Language Reference Guide
the participant represen- tation: • actor • boundary • control • entity • database • collections • queue @startuml participant participant as Foo actor actor as Foo1 boundary boundary as Foo2 control Foo4 database database as Foo5 collections collections as Foo6 queue queue as Foo7 Foo -> Foo1 : To actor PlantUML Language Reference Guide (1.2021.2) 1 / 397 1.2 Declaring participant 1 SEQUENCE DIAGRAM the as keyword. You can also change the background color of actor or participant. @startuml actor Bob #red ' The only difference between actor 'and participant is the drawing participant Alice participant0 码力 | 398 页 | 4.17 MB | 1 年前3PlantUML 1.2021.3 Справочное руководство по языку
participant) позволяет изменить представление участника: • actor • boundary • control • entity • database • collections @startuml actor Foo1 boundary Foo2 control Foo3 entity Foo4 database Foo5 collections ключевое слово as. Также возможно изменить цвет фона участника. @startuml actor Bob #red ' The only difference between actor 'and participant is the drawing participant Alice participant "I have a really\nlong использовать ссылки в диаграммах с помощью ключевого слова ref over. @startuml participant Alice actor Bob ref over Alice, Bob : init Alice -> Bob : hello ref over Bob This can be on several lines end0 码力 | 406 页 | 4.33 MB | 1 年前3Drawing UML with PlantUML - PlantUML Language Reference Guide(Version 1.2023.11)
the participant represen- tation: • actor • boundary • control • entity • database • collections • queue @startuml participant Participant as Foo actor Actor as Foo1 boundary Boundary as Foo2 control Foo4 database Database as Foo5 collections Collections as Foo6 queue Queue as Foo7 Foo -> Foo1 : To actor Foo -> Foo2 : To boundary Foo -> Foo3 : To control Foo -> Foo4 : To entity Foo -> Foo5 : To database the as keyword. You can also change the background color of actor or participant. @startuml actor Bob #red ' The only difference between actor 'and participant is the drawing participant Alice participant0 码力 | 551 页 | 7.79 MB | 1 年前3PlantUML 1.2021.3 Sprachreferenz
andere Schlüsselwörter anstelle von participant verwenden: • actor • boundary • control • entity • database • collections @startuml actor Foo1 boundary Foo2 control Foo3 entity Foo4 database Foo5 collections mithilfe von HTML Farbcodes oder Farbbeze- ichnungen gesetzt werden. @startuml actor Bob #red ' The only difference between actor 'and participant is the drawing participant Alice participant "I have a really\nlong einem Diagramm mit Hilfe des Schlüsselwortes ref over verwendet werden. @startuml participant Alice actor Bob ref over Alice, Bob : init Alice -> Bob : hello ref over Bob This can be on several lines end0 码力 | 406 页 | 4.22 MB | 1 年前3PlantUML 1.2021.2 Справочное руководство по языку
participant) позволяет изменить представление участника: • actor • boundary • control • entity • database • collections @startuml actor Foo1 boundary Foo2 control Foo3 entity Foo4 database Foo5 collections ключевое слово as. Также возможно изменить цвет фона участника. @startuml actor Bob #red ' The only difference between actor 'and participant is the drawing participant Alice participant "I have a really\nlong использовать ссылки в диаграммах с помощью ключевого слова ref over. @startuml participant Alice actor Bob ref over Alice, Bob : init Alice -> Bob : hello ref over Bob This can be on several lines end0 码力 | 388 页 | 4.18 MB | 1 年前3
共 357 条
- 1
- 2
- 3
- 4
- 5
- 6
- 36