简体   繁体   中英

Netty to parse file stream?

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)

There are some new features in Java 7 that you may find useful:

Netty is for socket. I guess Apache Camel is more suitable if you need to use file:

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM