I have a netty client reading messages from a TCP connection, and I want to add synthetic messages into the pipeline, to be processed by handlers down the line just as the normal messages.
The messages are to be injected once a second, using a periodic timer, i.e. these messages are asynchronous to the incoming messages, so I would have to invoke the pipeline somehow manually, without waiting for tcp traffic, but it will certainly have to be synchronized so the pipeline handlers are not being called concurrently.
In below simple example pipeline, the messages would have to be inserted after 1. (because otherwise the frame decoder would get confused), but before 2. (because that is supposed to process the synthetic messages, in addition to the regular ones).
How can this be done?
