2015-08-14 12:25:07 -05:00
|
|
|
<?php
|
|
|
|
namespace Icicle\Concurrent\Worker;
|
|
|
|
|
2015-08-27 22:51:50 -05:00
|
|
|
/**
|
2015-12-04 23:50:32 -06:00
|
|
|
* Interface for factories used to create new workers.
|
2015-08-27 22:51:50 -05:00
|
|
|
*/
|
2015-12-04 23:50:32 -06:00
|
|
|
interface WorkerFactory
|
2015-08-14 12:25:07 -05:00
|
|
|
{
|
2015-08-27 22:51:50 -05:00
|
|
|
/**
|
2015-12-04 23:50:32 -06:00
|
|
|
* Creates a new worker instance.
|
2015-08-27 22:51:50 -05:00
|
|
|
*
|
2015-12-04 23:50:32 -06:00
|
|
|
* @return Worker The newly created worker.
|
2015-08-27 22:51:50 -05:00
|
|
|
*/
|
2015-12-04 23:50:32 -06:00
|
|
|
public function create();
|
2015-08-14 12:25:07 -05:00
|
|
|
}
|