Given the declaration of an Akka Typed behavior, is it possible to chain another behavior such that I can perform some processing for every message that comes in? I went looking for an
andThen operator on the behavior but of course, didn’t find one.
My use case is that I have implemented my own keep-alive mechanism. When a message comes in, I wish to reset the keep-alive timer. I can do this for each message explicitly, but I was hoping I could keep my code to a minimum.