Uploaded image for project: 'Thrift'
  1. Thrift
  2. THRIFT-3432

Add a TByteBuffer transport to the Java library

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 0.9.3
    • 0.10.0
    • Java - Library
    • None
    • Patch Available
    • Patch

    Description

      A bounded alternative to TMemoryBuffer that uses java.nio.ByteBuffer under the hood.

      This is useful both to set sane constraints on maximum message size in a transport-agnostic manner but also because direct buffers can be used to serialize Thrift off-heap, avoiding allocations (thus reducing GC frequency and potentially live set size)

      Attachments

        Issue Links

          Activity

            People

              thomaslee Tom Lee
              thomaslee Tom Lee
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: