PHP Class Kraken\Channel\Record\RequestRecord

Afficher le fichier Open project: kraken-php/framework

Méthodes publiques

Свойство Type Description
$cancel callable
$failure callable
$pid string
$success callable
$timeout float

Méthodes publiques

Méthode Description
__construct ( string $pid, callable $success = null, callable $failure = null, callable $cancel = null, float $timeout )
__destruct ( )
cancel ( Erro\Error | Exceptio\Exception | ThrowableProxy $ex ) : mixed Cancel Request calling cancellation handler.
getPid ( ) : string Return protocol ID.
getTimeout ( ) : float Return timeout.
onCancel ( ) : callable Return cancellation handler.
onFailure ( ) : callable Return failure handler.
onSuccess ( ) : callable Return success handler.
reject ( Erro\Error | Exceptio\Exception | ThrowableProxy $ex ) : mixed Reject Request calling failure handler.
resolve ( mixed $value ) : mixed Resolve Request calling success handler.

Method Details

__construct() public méthode

public __construct ( string $pid, callable $success = null, callable $failure = null, callable $cancel = null, float $timeout )
$pid string
$success callable
$failure callable
$cancel callable
$timeout float

__destruct() public méthode

public __destruct ( )

cancel() public méthode

Cancel Request calling cancellation handler.
public cancel ( Erro\Error | Exceptio\Exception | ThrowableProxy $ex ) : mixed
$ex Erro\Error | Exceptio\Exception | Kraken\Throwable\ThrowableProxy
Résultat mixed

getPid() public méthode

Return protocol ID.
public getPid ( ) : string
Résultat string

getTimeout() public méthode

Return timeout.
public getTimeout ( ) : float
Résultat float

onCancel() public méthode

Return cancellation handler.
public onCancel ( ) : callable
Résultat callable

onFailure() public méthode

Return failure handler.
public onFailure ( ) : callable
Résultat callable

onSuccess() public méthode

Return success handler.
public onSuccess ( ) : callable
Résultat callable

reject() public méthode

Reject Request calling failure handler.
public reject ( Erro\Error | Exceptio\Exception | ThrowableProxy $ex ) : mixed
$ex Erro\Error | Exceptio\Exception | Kraken\Throwable\ThrowableProxy
Résultat mixed

resolve() public méthode

Resolve Request calling success handler.
public resolve ( mixed $value ) : mixed
$value mixed
Résultat mixed

Property Details

$cancel public_oe property

public callable $cancel
Résultat callable

$failure public_oe property

public callable $failure
Résultat callable

$pid public_oe property

public string $pid
Résultat string

$success public_oe property

public callable $success
Résultat callable

$timeout public_oe property

public float $timeout
Résultat float