LegalProcessor

interface LegalProcessor : Processor

Defines a Processor that subscribes to LegalProcessor.Input to receive results from a user responding to a LegalProcessor.Input.Prompt for a legal agreement.

Since

1.8.0

Types

Input
Link copied to clipboard
interface Input
Defines the legal input model that is available to be read from by the processor.

Functions

connectInput
Link copied to clipboard
abstract fun connectInput(input: LegalProcessor.Input): Closeable
Connects the provided input to this processor and returns a Closeable to release the connection when required.
observe
Link copied to clipboard
abstract fun observe(onResult: Consumer<LegalProcessor.Input.Result>): Closeable
Notifies the provided onResult callback when this LegalProcessor obtains a Input.Result until the returned Closeable is closed.
waitFor
Link copied to clipboard
abstract fun waitFor(requestUpdate: LegalProcessor.Input.RequestUpdate, onResult: Consumer<LegalProcessor.Input.Result>)
Notifies the provided onResult callback when this LegalProcessor handles a Input.Result.

Inheritors

Session
Link copied to clipboard