colossus.core

Connection

abstract class Connection extends WriteBuffer with WriteEndpoint

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

Instance Constructors

  1. new Connection(id: Long, initialHandler: ConnectionHandler, 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 domain: String

    ABSTRACT MEMBERS *

  5. abstract def finishConnect(): Unit

    Definition Classes
    ChannelActions
  6. abstract def isTimedOut(time: Long): Boolean

  7. abstract def keyInterestOps(ops: Int): Unit

    Attributes
    protected
    Definition Classes
    ChannelActions
  8. abstract def outgoing: Boolean

  9. abstract def status: ConnectionStatus

    Get the current connection status.

    Get the current connection status.

    Definition Classes
    ConnectionInfo
  10. abstract def unbindHandlerOnClose: Boolean

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

  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 enableReads(): Unit

    Definition Classes
    KeyInterestManager
  16. def enableWriteReady(): Unit

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

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

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

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

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

  23. 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.

  24. def handler: ConnectionHandler

  25. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  26. val id: Long

    The id of the underlying connection.

    The id of the underlying connection. This is different from a WorkerItem's id.

    Definition Classes
    ConnectionConnectionInfo
  27. def info(now: Long): ConnectionSnapshot

  28. def isDataBuffered: Boolean

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

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

    Attributes
    protected
  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. def readsEnabled: Boolean

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

    Definition Classes
    WriteBuffer
  40. 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

  41. def setKeyInterest(): Unit

    Attributes
    protected
    Definition Classes
    KeyInterestManager
  42. val startTime: Long

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

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

  45. def timeOpen: Long

    How long, in milliseconds, since the connection was opened

    How long, in milliseconds, since the connection was opened

    Definition Classes
    ConnectionConnectionInfo
  46. def toString(): String

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

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  50. val worker: WorkerRef

    Gets the worker this connection is bound to.

    Gets the worker this connection is bound to.

    Definition Classes
    ConnectionConnectionHandle
  51. def write(raw: DataBuffer): WriteStatus

    Attributes
    protected
    Definition Classes
    WriteBuffer
  52. def writeReadyEnabled: Boolean

    Definition Classes
    KeyInterestManager

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