I have a Netty pipeline which handles FullHttpRequest. I want to create a codec that Converts this FullHttpRequest to a Custom POJO class. I don't want to copy the ByteBuf "fullHttpRequest.content()". The Pojo class will have a reference to the ByteBuf, but How do I implement the ReferenceCounting in the new Class since it contains the ByteBuf, it need to be reference counted isnt it ?
how to implement Netty ReferenceCounted in a custom class?
137 Views Asked by Bhanuka Yd At
1
There are 1 best solutions below
Related Questions in NETTY
- Netty loses udp packets at the beginning of the communication
- How to create channel pool in netty?
- How to load balancing multiple Netty TCP socket server with nginx stream module?
- Play 2.4.0 https support - RSA no longer available?
- Why is my MessageToMessage Encoder not sending data? (Netty 4)
- Apache Camel: How to read a multi-line XML response using netty4:tcp
- Can Netty be used to boost Client / Server (in Jetty 9) application communication?
- How to read server response in netty channel pool?
- What ensure Netty handlers will get GCed
- Support P2P in Netty or Mina?
- when netty connects to my server?
- How to get notified when unfiltered Netty server actually gets shutdown?
- Why do I need to give the hostname in netty socketio and how to handle socketio in docker?
- Using Camel netty4 "unsupported message type" exception when sending String over UDP
- Several questions about netty's ChannelPoolMap
Related Questions in BYTEBUFFER
- How to print new line in string casts to ByteBuffer
- concatenate two byteBuffers to a single
- One thread one ByteBuffer NIO
- CopyPixelsFromBuffer works. But decode its ByteArray returns null
- How to Clear byte buffer in android
- What is the initial "mode" of ByteBuffer?
- ByteBuffer to byte[] in AsyncTask result to Fatal signal 11 (SIGSEGV)
- How to convert a raw request(response) string to a HttpRequest(HttpResponse) object
- How can I get my actual bytes that I used to make a big byte array?
- Buffering a Byte Array (From a DatagramPacket)
- How to convert a double into a byte array in swift?
- How to set fileChannel position
- Mixed Integer and String bytebyffer in java
- File Channel reads/adds wrong data
- convert byte array to guid using bytebuffer and UUID, byte size has 4
Related Questions in REFERENCE-COUNTING
- What is the idiomatic way to write a linked list with a tail pointer?
- What are the reference counts of objects A and B after assigning B=A?
- LibGDX - How many references counted in AssetManager of my case?
- LibGDX - Should texture.dispose() execute first and then batch.dispose()? or no different?
- CFGetRetainCount returns 2 after creating an object, should be 1?
- Can reference counting be relied on to close a file in Python?
- Release-Consume ordering for reference counting
- Reusing Qt's QString COW / ref counting in a string registry
- How to break a direct reference cycle in CPython
- Reference counting in a collection
- Pointer casts for itk::SmartPointer?
- Querying Python runtime for all objects in existence
- pyfftw release references to arrays without destroying plan
- C++ COM client releases two different objects within one call ?! 2nd Release causes access violation
- Intrusive ref count w/ action on destruction
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
You should extend
DefaultByteBufHolderand pass theByteBufinto the constructor. This will take care of all of this