colossus.core

ServerConnection

abstract class ServerConnection extends Connection

Linear Supertypes
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. ServerConnection
  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 ServerConnection(id: Long, handler: ServerConnectionHandler, server: ServerRef, 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. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  10. 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
    ServerConnectionConnection
  11. 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
  12. def disableReads(): Unit

    Definition Classes
    KeyInterestManager
  13. def disableWriteReady(): Unit

    Definition Classes
    KeyInterestManager
  14. def disconnect(): Unit

    Terminate the connection

    Terminate the connection

    Definition Classes
    ConnectionConnectionHandle
  15. def domain: String

    ABSTRACT MEMBERS *

    ABSTRACT MEMBERS *

    Definition Classes
    ServerConnectionConnection
  16. def enableReads(): Unit

    Definition Classes
    KeyInterestManager
  17. def enableWriteReady(): Unit

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

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

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

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

    Definition Classes
    AnyRef → Any
  22. 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
  23. def handleRead(data: DataBuffer)(implicit time: Long): Unit

    Definition Classes
    Connection
  24. 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
  25. def hashCode(): Int

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

    Definition Classes
    Connection
  27. def isDataBuffered: Boolean

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

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

    Definition Classes
    ServerConnectionConnection
  30. def isTimedOut(maxIdleTime: Duration, currentTime: Long): Boolean

    Attributes
    protected
    Definition Classes
    Connection
  31. 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
  32. 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
  33. def lastTimeDataWritten: Long

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

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

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

    Definition Classes
    AnyRef
  37. val outgoing: Boolean

    Definition Classes
    ServerConnectionConnection
  38. def readsEnabled: Boolean

    Definition Classes
    KeyInterestManager
  39. 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
  40. def requestWrite(): Unit

    Definition Classes
    WriteBuffer
  41. val server: ServerRef

  42. def serverHandler: ServerConnectionHandler

  43. 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
  44. def setKeyInterest(): Unit

    Attributes
    protected
    Definition Classes
    KeyInterestManager
  45. val startTime: Long

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

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

    Definition Classes
    Connection
  48. def timeOpen: Long

    How long, in milliseconds, since the connection was opened

    How long, in milliseconds, since the connection was opened

    Definition Classes
    ConnectionConnectionInfo
  49. def toString(): String

    Definition Classes
    AnyRef → Any
  50. def unbindHandlerOnClose: Boolean

    Definition Classes
    ServerConnectionConnection
  51. final def wait(): Unit

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

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

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

    Attributes
    protected
    Definition Classes
    WriteBuffer
  55. 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