class RoundRobinDistributor implements Distributor

순차적으로 지정된 저장소마다 돌아가면서 저장시키는 방식으로 저장소를 지정

Properties

protected array $config filesystem config
protected VirtualConnectionInterface $conn database connection instance
protected string $table table name

Methods

__construct(array $config, VirtualConnectionInterface $conn)

constructor

string
allot(File $file)

allot storage disk

array|null
lastRecord()

get last table record

string
next(string $name)

disk in the next

Details

at line 58
__construct(array $config, VirtualConnectionInterface $conn)

constructor

Parameters

array $config filesystem config
VirtualConnectionInterface $conn database connection instance

at line 70
string allot(File $file)

allot storage disk

Parameters

File $file file object

Return Value

string

at line 85
private array|null lastRecord()

get last table record

Return Value

array|null

at line 98
private string next(string $name)

disk in the next

Parameters

string $name last used disk name

Return Value

string