colossus.core

ClientConnection

abstract class ClientConnection extends Connection

Linear Supertypes
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. ClientConnection
  2. Connection
  3. WriteEndpoint
  4. ConnectionHandle
  5. ConnectionInfo
  6. WriteBuffer
  7. KeyInterestManager
  8. ChannelActions
  9. AnyRef
  10. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new ClientConnection(id: Long, clientHandler: ClientConnectionHandler, worker: WorkerRef)

Abstract Value Members

  1. abstract def channelClose(): Unit

    Attributes
    protected
    Definition Classes
    ChannelActions
  2. abstract def channelHost(): InetAddress

    Attributes
    protected
    Definition Classes
    ChannelActions
  3. abstract def channelWrite(data: DataBuffer): Int

    Hook to perform that actual operation of writing to a channel

    Hook to perform that actual operation of writing to a channel

    Attributes
    protected
    Definition Classes
    ChannelActions
  4. abstract def finishConnect(): Unit

    Definition Classes
    ChannelActions
  5. abstract def keyInterestOps(ops: Int): Unit

    Attributes
    protected
    Definition Classes
    ChannelActions
  6. abstract def status: ConnectionStatus

    Get the current connection status.

    Get the current connection status.

    Definition Classes
    ConnectionInfo

Concrete Value Members

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

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

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

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

    Definition Classes
    Any
  6. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  7. def bytesReceived: Long

    how many bytes have been received on the connection in total

    how many bytes have been received on the connection in total

    Definition Classes
    ConnectionConnectionInfo
  8. def bytesSent: Long

    Definition Classes
    WriteBuffer
  9. val clientHandler: ClientConnectionHandler

  10. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  11. def close(cause: DisconnectCause): Unit

    close is called with notify: false when reacting to the handler's termination NOTE - This is only called by the worker, because otherwise the worker does not know about the connection being closed

    close is called with notify: false when reacting to the handler's termination NOTE - This is only called by the worker, because otherwise the worker does not know about the connection being closed

    Definition Classes
    Connection
  12. def completeDisconnect(): Unit

    The WriteBuffer calls this if it has been signaled to disconnect and finishes writing any existing partial buffer

    The WriteBuffer calls this if it has been signaled to disconnect and finishes writing any existing partial buffer

    Definition Classes
    Connection → WriteBuffer
  13. def disableReads(): Unit

    Definition Classes
    KeyInterestManager
  14. def disableWriteReady(): Unit

    Definition Classes
    KeyInterestManager
  15. def disconnect(): Unit

    Terminate the connection

    Terminate the connection

    Definition Classes
    ConnectionConnectionHandle
  16. def domain: String

    ABSTRACT MEMBERS *

    ABSTRACT MEMBERS *

    Definition Classes
    ClientConnectionConnection
  17. def enableReads(): Unit

    Definition Classes
    KeyInterestManager
  18. def enableWriteReady(): Unit

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

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

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

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

    Definition Classes
    AnyRef → Any
  23. def gracefulDisconnect(): Unit

    This should be called when it's time to disconnect the connection, but we wish to finish writing any existing partial buffer.

    This should be called when it's time to disconnect the connection, but we wish to finish writing any existing partial buffer. We do this because any levels higher up already consider any data in a partial buffer to be sent, so we don't want to disconnect until we fullfil that promise.

    Definition Classes
    WriteBuffer
  24. def handleConnected(): Unit

  25. def handleRead(data: DataBuffer)(implicit time: Long): Unit

    Definition Classes
    Connection
  26. def handleWrite(data: DynamicOutBuffer): Boolean

    The main entry point for allowing a connection handler to write data to the connection.

    The main entry point for allowing a connection handler to write data to the connection. Handlers cannot write data whenever they please, instead they must initiate a write request. The worker then calls this method to fullfill the request and provide the handler with a DataOutBuffer to which it can write data.

    Definition Classes
    Connection
  27. def handler: ConnectionHandler

    Definition Classes
    Connection
  28. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  29. def info(now: Long): ConnectionSnapshot

    Definition Classes
    Connection
  30. def isDataBuffered: Boolean

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

    Definition Classes
    Any
  32. def isTimedOut(time: Long): Boolean

    Definition Classes
    ClientConnectionConnection
  33. def isTimedOut(maxIdleTime: Duration, currentTime: Long): Boolean

    Attributes
    protected
    Definition Classes
    Connection
  34. def isWritable: Boolean

    Returns true if data can be written to the connection.

    Returns true if data can be written to the connection. This will generally only return false if the write buffer is full or the connection has been terminated.

    Definition Classes
    ConnectionWriteEndpoint
  35. def lastTimeDataReceived: Long

    Returns a timestamp, in milliseconds of when the last time data was read on the connection

    Returns a timestamp, in milliseconds of when the last time data was read on the connection

    Definition Classes
    ConnectionConnectionInfo
  36. def lastTimeDataWritten: Long

    Definition Classes
    WriteBuffer
  37. final def ne(arg0: AnyRef): Boolean

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

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

    Definition Classes
    AnyRef
  40. val outgoing: Boolean

    Definition Classes
    ClientConnectionConnection
  41. def readsEnabled: Boolean

    Definition Classes
    KeyInterestManager
  42. def remoteAddress: Option[InetSocketAddress]

    The address of the remote host for this connection, if connected

    The address of the remote host for this connection, if connected

    Definition Classes
    ConnectionConnectionInfo
  43. def requestWrite(): Unit

    Definition Classes
    WriteBuffer
  44. def setHandler(newHandler: ConnectionHandler): Unit

    replace the existing handler with a new one.

    replace the existing handler with a new one. The old handler is terminated with the Disconnect cause and connected is called on the new handler if the connection is connected. No action is taken if the connection is closed

    Definition Classes
    Connection
  45. def setKeyInterest(): Unit

    Attributes
    protected
    Definition Classes
    KeyInterestManager
  46. val startTime: Long

    Definition Classes
    Connection
  47. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  48. def timeIdle(currentTime: Long): Long

    Definition Classes
    Connection
  49. def timeOpen: Long

    How long, in milliseconds, since the connection was opened

    How long, in milliseconds, since the connection was opened

    Definition Classes
    ConnectionConnectionInfo
  50. def toString(): String

    Definition Classes
    AnyRef → Any
  51. def unbindHandlerOnClose: Boolean

    Definition Classes
    ClientConnectionConnection
  52. final def wait(): Unit

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

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

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

    Attributes
    protected
    Definition Classes
    WriteBuffer
  56. def writeReadyEnabled: Boolean

    Definition Classes
    KeyInterestManager

Inherited from Connection

Inherited from WriteEndpoint

Inherited from ConnectionHandle

Inherited from ConnectionInfo

Inherited from WriteBuffer

Inherited from KeyInterestManager

Inherited from ChannelActions

Inherited from AnyRef

Inherited from Any

Ungrouped