Reputation: 10697
I have a requirement that two specific processes on the same host communicate through an append-only file. One process produces, the other consumes. The object-stream must hit the disk before going to the second process (at least the OS cache of the disk).
I would like to use Netty to parse the object-stream in the file. Is there a way to attach Netty to the file?
For latency sake, I would rather that it didn't involve a timer. Blocking is okay.
(I'm using JDK-7 if that makes any difference)
Upvotes: 0
Views: 536
Reputation: 33749
There are some new features in Java 7 that you may find useful:
Upvotes: 1
Reputation: 1510
Netty is for socket. I guess Apache Camel is more suitable if you need to use file:
Upvotes: 0