如何在Alpakka中使用Source.queue

时间:2018-04-03 16:37:10

标签: java jms akka-stream alpakka

我试图创建一个可以多次使用的JMS队列的生产者;也就是说,每次发送邮件时,我都不想创建与队列的连接。我想要一个连接打开的actor,每次收到消息时,它都使用相同的流程。

Actor init

 someActor.tell(foo); // something like this

演员onMessage

import numpy as np
import pandas as pd
import plotly.graph_objs as go

temp = train_data['project_is_approved'].value_counts()
labels = temp.index
sizes = (temp/temp.sum())*100
trace = go.pie(labels=labels,values=sizes,hoverinfo='label+percent')
layout = go.Layout(title='project proposal is approved or not')
data = [trace]
fig = go.figure(data = data,layout=layout)
py.iplot(fig)

0 个答案:

没有答案