This commit is contained in:
parent
fcb35bae01
commit
bfc74ab575
@ -33,7 +33,7 @@ class GlueConsumer() : Consumer {
|
|||||||
}
|
}
|
||||||
|
|
||||||
override fun handleDelivery(consumerTag : String?, envelope : Envelope?, basicProperties : AMQP.BasicProperties?, body : ByteArray?) {
|
override fun handleDelivery(consumerTag : String?, envelope : Envelope?, basicProperties : AMQP.BasicProperties?, body : ByteArray?) {
|
||||||
val rawJson = body!!.toString()
|
val rawJson = body!!.toString(Charsets.UTF_8)
|
||||||
println(rawJson)
|
println(rawJson)
|
||||||
val probability = Random.nextDouble(0.0,1.0)
|
val probability = Random.nextDouble(0.0,1.0)
|
||||||
val outputObject = OutputModel(tag=rawJson, probability=probability)
|
val outputObject = OutputModel(tag=rawJson, probability=probability)
|
||||||
|
Loading…
Reference in New Issue
Block a user