colossus

core

package core

Visibility
  1. Public
  2. All

Type Members

  1. sealed trait AliveState extends ConnectionState

  2. trait BackoffMultiplier extends AnyRef

    A BackoffMultiplier is used by a BackoffPolicy determines how the amount of time changes in between retry attempts.

  3. case class BackoffPolicy(baseBackoff: FiniteDuration, multiplier: BackoffMultiplier, maxTime: Option[FiniteDuration] = scala.None, maxTries: Option[Int] = scala.None, immediateFirstAttempt: Boolean = true) extends RetryPolicy with Product with Serializable

    A RetryPolicy used to gradually back-off from retries of an operation.

  4. class BasicCoreHandler extends CoreHandler with ServerConnectionHandler

  5. abstract class BasicSyncHandler extends WorkerItem with ConnectionHandler

    Convenience implementation of ConnectionHandler which provides implementations for all of the necessary functions.

  6. trait ChannelActions extends AnyRef

    This trait abstracts actions performed on a raw socket channel.

  7. abstract class ClientConnection extends Connection

  8. trait ClientConnectionHandler extends WorkerItem with ConnectionHandler

    ClientConnectionHandler is a trait meant to be used with outgoing connections.

  9. abstract class Connection extends WriteBuffer with WriteEndpoint

  10. trait ConnectionHandle extends ConnectionInfo

    This trait contains all connection-level functions that should be accessable to a top-level user.

  11. trait ConnectionHandler extends WorkerItem

    This is the base trait for all connection handlers.

  12. trait ConnectionInfo extends AnyRef

    A trait encapsulating live information about a connection.

  13. case class ConnectionSnapshot(domain: String, host: InetAddress, id: Long, timeOpen: Long = 0, readIdle: Long = 0, writeIdle: Long = 0, bytesSent: Long = 0, bytesReceived: Long = 0) extends Product with Serializable

    This class is used to report some basic stats about a Connection.

  14. sealed trait ConnectionState extends AnyRef

  15. sealed trait ConnectionStatus extends AnyRef

    Represent the connection state.

  16. sealed trait ConnectionVolumeState extends AnyRef

    ConnectionVolumeState indicates whether or not if the Server is operating with a normal workload, which is represented by the current ratio of used / available connections being beneath the ServerSettings.

  17. class Context extends AnyRef

    Represents the binding of an item to a worker

  18. abstract class CoreHandler extends WorkerItem with ConnectionHandler

    This is the connection handler on which the controller and service layers are built.

  19. class DSLDelegator extends Delegator

  20. case class DataBuffer(data: ByteBuffer) extends Encoder with Product with Serializable

    A thin wrapper around a NIO ByteBuffer with data to read

  21. trait DataOutBuffer extends AnyRef

    The DataOutBuffer is a ConnectionHandler's interface for writing data out to the connection.

  22. sealed trait DataReader extends AnyRef

    A DataReader is the result of codec's encode operation.

  23. case class DataStream(source: Source[DataBuffer]) extends DataReader with Product with Serializable

  24. abstract class Delegator extends AnyRef

    A Delegator is in charge of creating new ConnectionHandler’s for each new connection.

  25. sealed trait DisconnectCause extends RootDisconnectCause

    Messages representing why a disconnect occurred.

  26. sealed trait DisconnectError extends DisconnectCause

    Subset of DisconnectCause which represent errors which resulted in a disconnect.

  27. class DynamicOutBuffer extends DataOutBuffer

    A ByteBuffer-backed growable buffer.

  28. trait Encoder extends DataReader

  29. case class IncidentReport(totalTime: FiniteDuration, totalAttempts: Int) extends Product with Serializable

  30. abstract class Initializer extends AnyRef

  31. class InvalidConnectionStateException extends Exception

  32. trait KeyInterestManager extends ChannelActions

  33. trait ManualUnbindHandler extends WorkerItem with ClientConnectionHandler

    A Simple mixin trait that will cause the worker to not automatically unbind this handler if the connection it's attached to is closed.

  34. sealed trait MoreDataResult extends AnyRef

  35. trait ProxyActor extends WorkerItem

    This is a mixin for WorkerItem that gives it actor-like capabilities.

  36. sealed trait RetryAttempt extends AnyRef

    A RetryAttempt represents the next action that should be taken when retring an operation.

  37. trait RetryIncident extends AnyRef

    A RetryIncident is a state machine for managing the retry logic of a single incident of a failed operation.

  38. trait RetryPolicy extends AnyRef

    A RetryPolicy provides a scheme for managing controlled retries of some operation.

  39. case class ServerConfig(name: MetricAddress, delegatorFactory: (ServerRef, WorkerRef) ⇒ Delegator, settings: ServerSettings) extends Product with Serializable

    Configuration used to specify a Server's application-level behavior

  40. abstract class ServerConnection extends Connection

  41. trait ServerConnectionHandler extends WorkerItem with ConnectionHandler

    Mixin containing events just for server connection handlers

  42. case class ServerContext(server: ServerRef, context: Context) extends Product with Serializable

    An instance of this is handed to every new server connection handler

  43. trait ServerDSL extends AnyRef

  44. case class ServerRef extends Product with Serializable

    A ServerRef is the public interface of a Server.

  45. case class ServerSettings(port: Int, maxConnections: Int = 1000, maxIdleTime: Duration = ..., lowWatermarkPercentage: Double = 0.75, highWatermarkPercentage: Double = 0.85, highWaterMaxIdleTime: FiniteDuration = ..., tcpBacklogSize: Option[Int] = scala.None, bindingRetry: RetryPolicy = ..., delegatorCreationPolicy: WaitPolicy = ..., shutdownTimeout: FiniteDuration = ...) extends Product with Serializable

    Contains values for configuring how a Server operates

  46. case class ServerState(connectionVolumeState: ConnectionVolumeState, serverStatus: ServerStatus) extends Product with Serializable

    Represents the current state of a Server.

  47. sealed trait ServerStatus extends AnyRef

    Represents the startup status of the server.

  48. sealed abstract class ShutdownAction extends AnyRef

  49. case class WaitPolicy(waitTime: FiniteDuration, retryPolicy: RetryPolicy) extends Product with Serializable

    A WaitPolicy describes configuration for any process that needs to wait for some operation to complete, and if/how to retry the operation if it fails to complete within the waiting time.

  50. trait WatchedHandler extends WorkerItem with ConnectionHandler

    A Watched handler allows an actor to be tied to a connection.

  51. sealed trait WorkerCommand extends AnyRef

    These are a different class of Commands to which a worker will respond.

  52. case class WorkerConfig(io: IOSystem, workerId: Int) extends Product with Serializable

    Contains the configuration for each Worker.

  53. abstract class WorkerItem extends AnyRef

    A WorkerItem is anything that can be bound to worker to receive both events and external messages.

  54. class WorkerItemException extends Exception

  55. class WorkerItemManager extends AnyRef

    This keeps track of all the bound worker items, and properly handles added/removing them

  56. class WorkerItemProxy extends Actor with Stash

  57. case class WorkerRef extends Product with Serializable

    This is a Worker's public interface.

  58. trait WriteEndpoint extends ConnectionHandle

    This is passed to handlers to give them a way to synchronously write to the connection.

  59. sealed trait WriteStatus extends AnyRef

Value Members

  1. object BackoffMultiplier

  2. object ConnectionState

  3. object ConnectionStatus

  4. object ConnectionVolumeState

  5. object DataBuffer extends Serializable

  6. object Delegator

  7. object DisconnectCause

  8. object MoreDataResult

  9. object NoRetry extends RetryPolicy with RetryIncident with Product with Serializable

    A RetryPolicy that will never retry

  10. object ProxyActor

  11. object RetryAttempt

  12. object Server extends ServerDSL

    Servers can be thought of as applications, as they provide Delegators and ConnectionHandlers which contain application logic.

  13. object ServerDSL

  14. object ServerStatus

  15. object ShutdownAction

  16. object WaitPolicy extends Serializable

  17. object Worker

    Like the server actor, it is critical that instances of this actor get their own thread, since they block when waiting for events.

  18. object WorkerCommand

  19. object WorkerItemProxy

  20. object WriteStatus

Ungrouped