org.http4s.blaze.util

Type members

Classlikes

object BufferTools
object Cancelable
Companion
class
trait Cancelable

Type that can be canceled.

Type that can be canceled.

Companion
object
object Execution

Special ExecutionContext instances.

Special ExecutionContext instances.

SSL tools

SSL tools

class SerialExecutionContext(parent: ExecutionContext) extends ExecutionContext

Serialize execution of work, ensuring that no passed work is executed in parallel.

Serialize execution of work, ensuring that no passed work is executed in parallel.

Tasks are executed sequentially, in the order they are offered. Each task has a happens-before relationship with subsequent tasks, meaning mutations performed in a task are observed by all sequent tasks.

Value Params
parent

ExecutionContext with which to perform the work, which may consist of many tasks queued in the SerialExecutionContext.

class TickWheelExecutor(wheelSize: Int, val tick: Duration)

Low resolution execution scheduler

Low resolution execution scheduler

Value Params
tick

duration between ticks

wheelSize

number of spokes on the wheel. Each tick, the wheel will advance a spoke

Constructor

primary constructor which immediately spins up a thread and begins ticking

Note

The ideas for org.http4s.blaze.util.TickWheelExecutor is based off of loosely came from the Akka scheduler, which was based on the Netty HashedWheelTimer which was in term based on concepts in <a href="http://cseweb.ucsd.edu/users/varghese/">George Varghese</a> and Tony Lauck's paper <a href="http://cseweb.ucsd.edu/users/varghese/PAPERS/twheel.ps.Z">'Hashed and Hierarchical Timing Wheels: data structures to efficiently implement a timer facility'</a>

Companion
object
Companion
class