PHP Class Repo2\QueryReactor\Sharding\ShardingController

Inheritance: implements Repo2\QueryReactor\Controller
Exibir arquivo Open project: repo2/query-reactor

Public Methods

Method Description
__construct ( Repo2\QueryReactor\Sharding\ShardingService $sharding, string $controllerClass )
getLink ( Repo2\QueryReactor\Driver $driver, Repo2\QueryReactor\Query $query )
getQuery ( Repo2\QueryReactor\Driver $driver, $link )

Private Methods

Method Description
pickGlobal ( ) : Repo2\QueryReactor\Controller
pickShard ( Repo2\QueryReactor\Sharding\ShardedQuery $query ) : Repo2\QueryReactor\Controller

Method Details

__construct() public method

public __construct ( Repo2\QueryReactor\Sharding\ShardingService $sharding, string $controllerClass )
$sharding Repo2\QueryReactor\Sharding\ShardingService
$controllerClass string

getQuery() public method

public getQuery ( Repo2\QueryReactor\Driver $driver, $link )
$driver Repo2\QueryReactor\Driver