Alex
Alex

Reputation: 2030

netty share channels between several netty servers

I using watches and implementing some custom IoT logic. I'm using netty to receive connection from watch and store some data and everyting working fine with that approach. But I got new requirement to send some command to watch. In order to do that I can send command to already opened channel on Netty but with that approach I need to store somewhere map with imei and opened netty channel. Are there some solutions for that? Or probably this approach is fine...

Upvotes: 0

Views: 414

Answers (1)

Dmitriy Dumanskiy
Dmitriy Dumanskiy

Reputation: 12787

Netty has DefaultChannelGroup for that. Also, you may create own ConcurrentHashMap to hold required channels. Your question is not very clear, so It is hard to give the more precise answer.

Upvotes: 1

Related Questions