Class/Object

com.twitter.scrooge

TReusableMemoryTransport

Related Docs: object TReusableMemoryTransport | package scrooge

Permalink

class TReusableMemoryTransport extends TTransport

A version of TMemoryTransport that allows for reuse in order to minimize object allocations.

Linear Supertypes
TTransport, Closeable, AutoCloseable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. TReusableMemoryTransport
  2. TTransport
  3. Closeable
  4. AutoCloseable
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new TReusableMemoryTransport(baos: TByteArrayOutputStream)

    Permalink

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. def close(): Unit

    Permalink
    Definition Classes
    TReusableMemoryTransport → TTransport → Closeable → AutoCloseable
  7. def consumeBuffer(arg0: Int): Unit

    Permalink
    Definition Classes
    TTransport
  8. def currentCapacity: Int

    Permalink

    Total bytes currently allowed in the struct.

    Total bytes currently allowed in the struct.

    Note: more writes beyond this length will cause the struct to grow.

  9. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  10. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  11. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  12. def flush(): Unit

    Permalink
    Definition Classes
    TTransport
    Annotations
    @throws( ... )
  13. def getArray(): Array[Byte]

    Permalink
  14. def getBuffer(): Array[Byte]

    Permalink
    Definition Classes
    TTransport
  15. def getBufferPosition(): Int

    Permalink
    Definition Classes
    TTransport
  16. def getBytesRemainingInBuffer(): Int

    Permalink
    Definition Classes
    TTransport
  17. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  18. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  19. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  20. def isOpen(): Boolean

    Permalink
    Definition Classes
    TReusableMemoryTransport → TTransport
  21. def length(): Int

    Permalink
  22. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  23. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  24. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  25. def numWrittenBytes: Int

    Permalink
  26. def open(): Unit

    Permalink
    Definition Classes
    TReusableMemoryTransport → TTransport
  27. def peek(): Boolean

    Permalink
    Definition Classes
    TTransport
  28. def read(into: Array[Byte], off: Int, len: Int): Int

    Permalink
    Definition Classes
    TReusableMemoryTransport → TTransport
  29. def readAll(arg0: Array[Byte], arg1: Int, arg2: Int): Int

    Permalink
    Definition Classes
    TTransport
    Annotations
    @throws( ... )
  30. def reset(): Unit

    Permalink

    Resets both reads and writes.

  31. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  32. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  33. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  34. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  35. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  36. def write(from: Array[Byte], off: Int, len: Int): Unit

    Permalink
    Definition Classes
    TReusableMemoryTransport → TTransport
  37. def write(arg0: Array[Byte]): Unit

    Permalink
    Definition Classes
    TTransport
    Annotations
    @throws( ... )

Inherited from TTransport

Inherited from Closeable

Inherited from AutoCloseable

Inherited from AnyRef

Inherited from Any

Ungrouped