I use MyDecoder
which extends ByteToMessageDecoder
to get Message from the socket Stream.
It works fine in one thread. But in more threads, the netty has reported 'the handler should be sharable'
However, I search in netty api, the ByteToMessageDecoder
can't be @sharable, so how can I use
it in multi thread.
相关问题
- How to let a thread communicate with another activ
- Netty websocket client does not read new frames fr
- Why it isn't advised to call the release() met
- ThreadPoolTaskScheduler behaviour when pool is ful
- Custom TaskScheduler, SynchronizationContext?
相关文章
- Spring WebFlux+Netty 中怎么配置 HTTP/2?
- Difference between Thread#run and Thread#wakeup?
- Java/Spring MVC: provide request context to child
- Observatory server failed to start - Fails to crea
- Threading in C# , value types and reference types
- RMI Threads prevent JVM from exiting after main()
- Async task does not work properly (doInBackground
- Android, Volley Request, the response is blocking
Create a new instance in your ChannelInitializer.