colossus.testkit

MockWriteBuffer

class MockWriteBuffer extends WriteBuffer

if a handler is passed, the buffer will call the handler's readyForData, and it will call it's own handleWrite if interestRW is true

Linear Supertypes
WriteBuffer, KeyInterestManager, AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. MockWriteBuffer
  2. WriteBuffer
  3. KeyInterestManager
  4. AnyRef
  5. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new MockWriteBuffer(maxWriteSize: Int, handler: Option[ConnectionHandler] = None)

Value Members

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

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

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

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

    Definition Classes
    Any
  5. var bytesAvailable: Int

  6. def bytesSent: Long

    Definition Classes
    WriteBuffer
  7. def channelWrite(data: DataBuffer): Int

    Definition Classes
    MockWriteBuffer → WriteBuffer
  8. def clearBuffer(): ByteString

  9. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  10. var connection_status: ConnectionStatus

  11. def disableReads(): Unit

    Definition Classes
    KeyInterestManager
  12. def disableWriteReady(): Unit

    Definition Classes
    KeyInterestManager
  13. def enableReads(): Unit

    Definition Classes
    KeyInterestManager
  14. def enableWriteReady(): Unit

    Definition Classes
    KeyInterestManager
  15. final def eq(arg0: AnyRef): Boolean

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

    Definition Classes
    AnyRef → Any
  17. def expectBufferCleared(): Unit

  18. def expectBufferNotCleared(): Unit

  19. def expectNoWrite(): Unit

  20. def expectOneWrite(data: ByteString): Unit

  21. def expectWrite(data: ByteString): Unit

  22. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  23. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  24. def handleWrite(): Unit

    Definition Classes
    WriteBuffer
  25. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  26. def isDataBuffered: Boolean

    Definition Classes
    WriteBuffer
  27. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  28. def lastTimeDataWritten: Long

    Definition Classes
    WriteBuffer
  29. val maxWriteSize: Int

  30. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  31. final def notify(): Unit

    Definition Classes
    AnyRef
  32. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  33. def onBufferClear(): Unit

    Definition Classes
    MockWriteBuffer → WriteBuffer
  34. def readsEnabled: Boolean

    Definition Classes
    KeyInterestManager
  35. def setKeyInterest(): Unit

    Attributes
    protected
    Definition Classes
    MockWriteBuffer → KeyInterestManager
  36. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  37. def toString(): String

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

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  41. def write(raw: DataBuffer): WriteStatus

    Definition Classes
    WriteBuffer
  42. def writeReadyEnabled: Boolean

    Definition Classes
    KeyInterestManager

Inherited from WriteBuffer

Inherited from KeyInterestManager

Inherited from AnyRef

Inherited from Any

Ungrouped