Context

interface Context<T : Any>

Context for an event.

Parameters

T

Event type.

Properties

Link copied to clipboard
abstract val attributes: Map<*, *>
Link copied to clipboard
abstract val event: T
Link copied to clipboard
abstract val exception: Exception?
Link copied to clipboard
abstract val handled: Boolean
Link copied to clipboard
abstract val nextHandler: Int
Link copied to clipboard
abstract val nextHandlers: List<Handler<T>>
Link copied to clipboard
abstract val predicate: (Context<T>) -> Boolean

Functions

Link copied to clipboard
open fun next(): Context<T>
Link copied to clipboard
abstract fun with(event: T = this.event, predicate: (Context<T>) -> Boolean = this.predicate, nextHandlers: List<Handler<T>> = this.nextHandlers, nextHandler: Int = this.nextHandler, exception: Exception? = this.exception, attributes: Map<*, *> = this.attributes, handled: Boolean = this.handled): Context<T>