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

Add a TByteBuffer transport to the Java library

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 0.9.3
    • Fix Version/s: 0.10.0
    • Component/s: Java - Library
    • Labels:
      None
    • Patch Info:
      Patch Available
    • Flags:
      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

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

                Dates

                • Created:
                  Updated:
                  Resolved: