unfiltered.netty.cycle
package unfiltered.netty.cycle
Type members
Classlikes
trait DeferredResponse
Defers application of the intent's response function
to a Deferral mechanism. This allows the intent to inspect
the request and potentially return Pass on the worker thread,
only deferring if it is to produce a response. The
object should be used to ensure that blocking operations
are not performed in the evaluation of the intent function.
to a Deferral mechanism. This allows the intent to inspect
the request and potentially return Pass on the worker thread,
only deferring if it is to produce a response. The
Defer
object should be used to ensure that blocking operations
are not performed in the evaluation of the intent function.
trait SynchronousExecution
Evaluates the intent and its response function on
an I/O worker thread. This is only appropriate if the
intent is fully CPU-bound. If any thread-blocking
I/O is required, use deferred execution.
an I/O worker thread. This is only appropriate if the
intent is fully CPU-bound. If any thread-blocking
I/O is required, use deferred execution.
Evaluates the intent in an unbounded CachedThreadPool
executor. For a production environment with known
memory constraints, it is better to extend
a configured MemoryAwareThreadPoolExecutor.
executor. For a production environment with known
memory constraints, it is better to extend
DeferralExecutor with DeferredIntent
and supplya configured MemoryAwareThreadPoolExecutor.
- Companion
- object