2019独角兽企业重金招聘Python工程师标准>>>

Akka Types of dispatchers

There are 4 different types of message dispatchers:

• Dispatcher

– This is an event-based dispatcher that binds a set of Actors to a thread pool. It is the default dispatcher used if one is not specified.

– Sharability: Unlimited

– Mailboxes: Any, creates one per Actor

– Use cases: Default dispatcher, Bulkheading

Driven by: java.util.concurrent.ExecutorService specify using “executor” using “fork-join-executor”, “thread-pool-executor” or the FQCN of an

akka.dispatcher.ExecutorServiceConfigurator

• PinnedDispatcher

– This dispatcher dedicates a unique thread for each actor using it; i.e. each actor will have its own thread pool with only one thread in the pool.

– Sharability: None

– Mailboxes: Any, creates one per Actor

– Use cases: Bulkheading

– Driven by: Any akka.dispatch.ThreadPoolExecutorConfigurator by default a“thread-pool-executor”

• CallingThreadDispatcher

– This dispatcher runs invocations on the current thread only. This dispatcher does not create any new

threads, but it can be used from different threads concurrently for the same actor. See CallingThreadDispatcher for details and restrictions.

– Sharability: Unlimited

– Mailboxes: Any, creates one per Actor per Thread (on demand)

– Use cases: Testing

– Driven by: The calling thread (duh)

Akka官方文档中说有四个,只找到三个。

================END================

转载于:https://my.oschina.net/xinxingegeya/blog/367320

Akka Types of dispatchers相关推荐

  1. Akka Dispatchers和Routers

    Akka Dispatcher是维持Akka Actor动作的核心组件,是整个Akka框架的引擎.它是基于Java的Executor框架来实现的.Dispatcher控制和协调消息并将其分发给运行在底 ...

  2. Akka的Actor编程

    2019独角兽企业重金招聘Python工程师标准>>> ActorSystem("companyname") 相当于注册一家公司一样,负责: 通用配置 如:dis ...

  3. Akka并发编程——第六节:Actor模型(五)

    本章主要内容: 1. !消息发送,Fire-and-Forget消息模型 2. ?消息发送,Send-And-Receive-Future消息模型 Akka提供了两种消息模型:fire-and-for ...

  4. 使用akka构建高并发程序_如何使用Akka Cluster创建简单的应用程序

    使用akka构建高并发程序 If you read my previous story about Scalachain, you probably noticed that it is far fr ...

  5. actor akka_如果您仍在使用同步,则应改用Akka Actor-这就是为什么

    actor akka by Martin Budi 马丁·布迪(Martin Budi) 如果您仍在使用同步,则应改用Akka Actor-这就是为什么 (If you're still using ...

  6. akka balance router的实现

    当akka处于balance策略的时候,Akka的父actor在选择相应的子actor去执行相应的消息时,不会直接直接选择,而是在分发器dispatch中,通过共享邮箱的方式,选择一个空闲的子acto ...

  7. akka之分发和路由

    一 Dispatchers 1.1 理解分发器 分发器是一个通信协调员的角色,主要负责消息的接收和传递.主要依据一定的分发策略,用于控制执行流程,然后将到来的消息或者请求路由给相关的业务进程. 提供飞 ...

  8. akka java ask_Akka Stream之集成

    与Actor集成 为了将流的元素作为消息传递给一个普通的actor,你可以在mapAsync里使用ask或者使用Sink.actorRefWithAck. 消息发送给流,可以通过Source.queu ...

  9. akka java api中文_akka入门 (1):akka简介

    这个akka入门系列大量参考了akka文档.主要是翻译+自己的一些理解.这里对akka文档吐一下槽,它的文档初看上去感觉挺详细的.但是很多示例代码都是片段,对初学者来说甚至都无法运行起来,所以我这里会 ...

最新文章

  1. 6.1添加首页和登录页静态模版
  2. Deep Learning(深度学习)学习笔记整理系列之LeNet-5卷积参数个人理解
  3. 收藏 | Transformers资料汇总!从原理到应用
  4. jupyter notebook运行的快捷键_AI Studio-Notebook基础使用教程(一)
  5. centos7网卡编辑_CentOS7网卡命名中碰到的一个坑
  6. 阅读java文件_阅读与阅读写文件 - Java空格
  7. c 关闭html,运行node Server.js后如何关闭?
  8. 数据通信与计算机网络
  9. Java小游戏之飞翔的小鸟
  10. 科幻计算机类小说,短篇科幻小说推荐 | 黄金时代的五部科幻杰作
  11. 计算机单位kb和m比较,G、GB、KB、M和MB是怎么回事?
  12. python解一元三次方程_利用Python的sympy包求解一元三次方程示例
  13. 相关分析——皮尔逊相关系数、t显著性检验及Python实现
  14. [转载] 晓说——第29期:海上霸主航母(上)
  15. Python + Django 入门级开发手顺
  16. Android闹钟最终版【android源码闹钟解析】
  17. 微信WeChatHelper3.1.0.72逆向-微信WeChatHelper3.1.0.72接口(WeChatHelper3.1.0.72.dll)-VC++调用实例方法(win32)
  18. 乐观人生VS悲观人生
  19. 无锡做大做强“中国芯” 华虹功不可没
  20. SQL查询选修了全部课程的学生姓名解析

热门文章

  1. vim 的tabnew带来的惊喜-建立多标签
  2. mysql主从复制运维_Mysql主从复制配置
  3. python怎么设置函数超时时间_在python运行时为函数设置超时秒数
  4. php gd库画线,[PHP] GD库(十)绘制线段与圆弧 imageline、imagesetstyle 与 imagearc 函数...
  5. mysql无法存储文字_mysql存储不了中文字符串怎么办
  6. phphstudy运行不了网站_phpStudy访问速度慢和启动失败的解决办法
  7. 《系统集成项目管理工程师》必背100个知识点-33常见的工作分解结构表现形式...
  8. 2016年6月份学习总结,读书《向着光亮那方》
  9. SpringBoot中实现连接多个Redis分别读写数据
  10. SpringBoot+Vue实现请求后台获取Base64编码的图片验证码并使用Redis缓存实现2分钟内有效