Akka actor response caching -



Akka actor response caching -

i'm using akka on 1 of projects , need state of actor, way i'm doing follows.

a rest request comes in

@get @produces(array(mediatype.application_json)) def get() = { seek { await.result((getscanningactor ? workinfo), 5.second).asinstanceof[scanrequest] } catch{ case ex: timeoutexception => { requesttimedout() } } }

on actor respond current work state

case workinfo => sender ! currentwork

for reason first time phone call function right value, on next requests same value received on first call

i'm using dcevm if makes difference.

akka

Comments

Popular posts from this blog

php - How to pass multiple values from url -

xslt - DocBook 5 to PDF transform failing with error: "fo:flow" is missing child elements. Required content model: marker* -

database - php search bar when I press submit with nothing in the search bar it shows all the data -