Class

colossus.testkit

MockWriteBuffer

Related Doc: package testkit

Permalink

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
Visibility
  1. Public
  2. All

Instance Constructors

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

    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. var bytesAvailable: Int

    Permalink
    Attributes
    protected
  6. def bytesSent: Long

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

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

    Permalink
  9. def clone(): AnyRef

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

    Permalink
    Attributes
    protected
  11. def disableReads(): Unit

    Permalink
    Definition Classes
    KeyInterestManager
  12. def disableWriteReady(): Unit

    Permalink
    Definition Classes
    KeyInterestManager
  13. def disconnectBuffer(cb: () ⇒ Unit): Unit

    Permalink
    Definition Classes
    WriteBuffer
  14. def enableReads(): Unit

    Permalink
    Definition Classes
    KeyInterestManager
  15. def enableWriteReady(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  18. def expectNoWrite(): Unit

    Permalink
  19. def expectNumWrites(num: Int): Unit

    Permalink

    Expect exactly num writes

  20. def expectOneWrite(data: ByteString): Unit

    Permalink
  21. def expectWrite(data: ByteString): Unit

    Permalink
  22. def finalize(): Unit

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

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

    Permalink
    Definition Classes
    WriteBuffer
  25. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  26. val internalBufferSize: Int

    Permalink
    Definition Classes
    MockWriteBuffer → WriteBuffer
  27. def isDataBuffered: Boolean

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

    Permalink
    Definition Classes
    Any
  29. def lastTimeDataWritten: Long

    Permalink
    Definition Classes
    WriteBuffer
  30. val maxWriteSize: Int

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

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

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

    Permalink
    Definition Classes
    AnyRef
  34. def onBufferClear(): Unit

    Permalink
    Definition Classes
    MockWriteBuffer → WriteBuffer
  35. def readsEnabled: Boolean

    Permalink
    Definition Classes
    KeyInterestManager
  36. def setKeyInterest(): Unit

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

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

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

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  42. def withExpectedWrite(f: (ByteString) ⇒ Unit): Unit

    Permalink
  43. def write(raw: DataBuffer): WriteStatus

    Permalink
    Definition Classes
    MockWriteBuffer → WriteBuffer
  44. def writeReadyEnabled: Boolean

    Permalink
    Definition Classes
    KeyInterestManager

Inherited from WriteBuffer

Inherited from KeyInterestManager

Inherited from AnyRef

Inherited from Any

Ungrouped