colossus

controller

package controller

Visibility
  1. Public
  2. All

Type Members

  1. sealed trait AliveOutputState extends OutputState

  2. abstract class Controller[Input, Output] extends CoreHandler with InputController[Input, Output] with OutputController[Input, Output]

    A Controller is a Connection handler that is designed to work with connections involving decoding raw bytes into input messages and encoding output messages into bytes.

  3. case class ControllerConfig(outputBufferSize: Int, sendTimeout: Duration, flushBufferOnClose: Boolean = true) extends Product with Serializable

    Configuration for the controller

  4. class DataQueue extends AnyRef

    The DataQueue is used only when processing a stream.

  5. class DisconnectingException extends Exception

  6. class DualSource[T] extends Source[T]

    Wraps 2 sinks and will automatically begin reading from the second only when the first is empty.

  7. class FiniteBytePipe extends InfinitePipe[DataBuffer]

    A pipe designed to accept a fixed number of bytes

  8. abstract class Generator[T] extends Source[T]

  9. class InfinitePipe[T] extends Pipe[T, T]

  10. trait InputController[Input, Output] extends WorkerItem with MasterController[Input, Output]

    The InputController maintains all state dealing with reading in messages in a controller.

  11. sealed trait InputState extends AnyRef

  12. class InvalidInputStateException extends Exception

  13. class InvalidOutputStateException extends Exception

    This is thrown anytime we hit a state that shouldn't be possible.

  14. class IteratorGenerator[T] extends Generator[T]

  15. trait MasterController[Input, Output] extends WorkerItem with ConnectionHandler

    The base trait inherited by both InputController and OutputController and ultimately implemented by Controller.

  16. class MessageQueue[T] extends AnyRef

  17. trait OutputController[Input, Output] extends WorkerItem with MasterController[Input, Output]

    The OutputController maintains all state dealing with writing messages in a controller.

  18. sealed trait OutputError extends OutputResult

  19. sealed trait OutputResult extends AnyRef

    An ADT representing the result of a pushing a message to write

  20. sealed trait OutputState extends AnyRef

  21. trait Pipe[T, U] extends Sink[T] with Source[U]

    A Pipe is a callback-based data transport abstraction meant for handling streams.

  22. class PipeCancelledException extends Exception with PipeException

    This is a special exception that Input/Output controllers look for when error handling pipes.

  23. sealed trait PipeException extends Throwable

  24. class PipeStateException extends Exception with PipeException

  25. class PipeTerminatedException extends Exception with PipeException

  26. sealed trait PushResult extends AnyRef

  27. case class QueuedItem[T](item: T, postWrite: (OutputResult) ⇒ Unit, creationTimeMillis: Long) extends Product with Serializable

  28. trait Sink[T] extends Transport

    A Sink is the write side of a pipe.

  29. trait Source[T] extends Transport

    A Source is the read side of a pipe.

  30. trait Transport extends AnyRef

  31. class Trigger extends AnyRef

    When a user attempts to push a value into a pipe, and the pipe either fills or was already full, a Trigger is returned in the PushResult.

Value Members

  1. object InputState

  2. object OutputResult

  3. object OutputState

  4. object PipeCombinator

  5. object PushResult

  6. object QueuedItem extends Serializable

  7. object Source

Ungrouped