PHP 클래스 Cronario\AbstractJob

상속: implements Serializable, use trait Cronario\TraitOptions
파일 보기 프로젝트 열기: cronario/cronario 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$callbacks array
$data array
$result Cronario\Exception\ResultException
$resultClass
$workerClass null | string

공개 메소드들

메소드 설명
__clone ( )
__construct ( array $options = [] )
__invoke ( AbstractJob $parentJob = null ) : ResultException | null
addAttempts ( integer $inc = 1 ) : AbstractJob
addData ( $key, $value )
addDebug ( $value )
countAttemptQueueDelay ( ) : integer
getAppId ( ) : array | integer | null | string
getAttemptDelay ( ) : integer
getAttemptStrategy ( ) : integer | null | string
getAttempts ( ) : integer
getAttemptsMax ( ) : integer | null | string
getAuthor ( ) : mixed
getCallbacks ( ) : array
getCallbacksByType ( $type ) : array
getCallbacksDone ( ) : mixed
getCallbacksError ( ) : mixed
getCallbacksFailure ( ) : mixed
getCallbacksSuccess ( ) : mixed
getComment ( ) : integer | null | string
getCreateOn ( ) : integer | null | string
getData ( null $key = null, null $default = null ) : string | integer | null
getDebug ( ) : null | array
getDeleteOn ( ) : integer | null | string
getExpiredOn ( ) : null
getFinishOn ( ) : null
getId ( ) : mixed
getJobClass ( ) : string
getParam ( null $key = null, null $default = null ) : string | integer | null
getPriority ( ) : null
getQueueDelay ( ) : mixed
getResult ( ) : ResultException | null
getSchedule ( ) : integer | null | string
getScheduleDelay ( ) : integer
getStartOn ( ) : mixed
getWorkerClass ( ) : string
hasAttempt ( ) : boolean
hasData ( $key ) : boolean
hasParam ( $key ) : boolean
isDebug ( ) : integer | null | string
isStored ( ) : boolean
isSync ( ) : boolean
putIntoQueue ( )
save ( )
serialize ( ) : string
setAppId ( $appId ) : AbstractJob
setAttemptDelay ( $attemptDelay ) : AbstractJob
setAttemptStrategy ( $attemptStrategy ) : AbstractJob
setAttempts ( $value ) : AbstractJob
setAttemptsMax ( $attemptMax ) : AbstractJob
setAuthor ( $author )
setCallbackDone ( $job ) : AbstractJob
setCallbackError ( $job ) : AbstractJob
setCallbackFailure ( $job ) : AbstractJob
setCallbackSuccess ( $job ) : AbstractJob
setCallbacks ( array $callbacks = [] )
setComment ( $comment ) : AbstractJob
setCreateOn ( $value ) : AbstractJob
setData ( $key, $value )
setDebug ( $debug ) : AbstractJob
setDeleteOn ( $value ) : AbstractJob
setExpiredOn ( $value ) : AbstractJob
setId ( $id ) : AbstractJob
setParam ( $key, $value )
setParams ( array $params = [] )
setPriority ( $priority ) : AbstractJob
setResult ( $result, null $data = null ) : ResultException | mixed
setSchedule ( $schedule ) : AbstractJob
setStartOn ( $value ) : AbstractJob
setSync ( $bool ) : AbstractJob
setWorkerClass ( $class ) : AbstractJob
unserialize ( string $serialized )
unsetData ( $key )

보호된 메소드들

메소드 설명
addCallbackJob ( $type, $job )
addDefaultData ( )
getParentId ( ) : integer | null | string
getProducer ( ) region Storage Queue ***********************************************************
getQueue ( ) : Queue
getStorage ( ) : Cronario\Storage\StorageInterface
init ( ) Template Method
setJobClass ( $class ) : AbstractJob
setParentId ( $parentId ) : AbstractJob

메소드 상세

__clone() 공개 메소드

public __clone ( )

__construct() 공개 메소드

public __construct ( array $options = [] )
$options array

__invoke() 공개 메소드

public __invoke ( AbstractJob $parentJob = null ) : ResultException | null
$parentJob AbstractJob
리턴 Cronario\Exception\ResultException | null

addAttempts() 공개 메소드

public addAttempts ( integer $inc = 1 ) : AbstractJob
$inc integer
리턴 AbstractJob

addCallbackJob() 보호된 메소드

protected addCallbackJob ( $type, $job )
$type
$job

addData() 공개 메소드

public addData ( $key, $value )
$key
$value

addDebug() 공개 메소드

public addDebug ( $value )
$value

addDefaultData() 보호된 메소드

protected addDefaultData ( )

countAttemptQueueDelay() 공개 메소드

public countAttemptQueueDelay ( ) : integer
리턴 integer

getAppId() 공개 메소드

public getAppId ( ) : array | integer | null | string
리턴 array | integer | null | string

getAttemptDelay() 공개 메소드

public getAttemptDelay ( ) : integer
리턴 integer

getAttemptStrategy() 공개 메소드

public getAttemptStrategy ( ) : integer | null | string
리턴 integer | null | string

getAttempts() 공개 메소드

public getAttempts ( ) : integer
리턴 integer

getAttemptsMax() 공개 메소드

public getAttemptsMax ( ) : integer | null | string
리턴 integer | null | string

getAuthor() 공개 메소드

public getAuthor ( ) : mixed
리턴 mixed

getCallbacks() 공개 메소드

public getCallbacks ( ) : array
리턴 array

getCallbacksByType() 공개 메소드

public getCallbacksByType ( $type ) : array
$type
리턴 array

getCallbacksDone() 공개 메소드

public getCallbacksDone ( ) : mixed
리턴 mixed

getCallbacksError() 공개 메소드

public getCallbacksError ( ) : mixed
리턴 mixed

getCallbacksFailure() 공개 메소드

public getCallbacksFailure ( ) : mixed
리턴 mixed

getCallbacksSuccess() 공개 메소드

public getCallbacksSuccess ( ) : mixed
리턴 mixed

getComment() 공개 메소드

public getComment ( ) : integer | null | string
리턴 integer | null | string

getCreateOn() 공개 메소드

public getCreateOn ( ) : integer | null | string
리턴 integer | null | string

getData() 공개 메소드

public getData ( null $key = null, null $default = null ) : string | integer | null
$key null
$default null
리턴 string | integer | null

getDebug() 공개 메소드

public getDebug ( ) : null | array
리턴 null | array

getDeleteOn() 공개 메소드

public getDeleteOn ( ) : integer | null | string
리턴 integer | null | string

getExpiredOn() 공개 메소드

public getExpiredOn ( ) : null
리턴 null

getFinishOn() 공개 메소드

public getFinishOn ( ) : null
리턴 null

getId() 공개 메소드

public getId ( ) : mixed
리턴 mixed

getJobClass() 공개 메소드

public getJobClass ( ) : string
리턴 string

getParam() 공개 메소드

public getParam ( null $key = null, null $default = null ) : string | integer | null
$key null
$default null
리턴 string | integer | null

getParentId() 보호된 메소드

protected getParentId ( ) : integer | null | string
리턴 integer | null | string

getPriority() 공개 메소드

public getPriority ( ) : null
리턴 null

getProducer() 보호된 메소드

region Storage Queue ***********************************************************
protected getProducer ( )

getQueue() 보호된 메소드

protected getQueue ( ) : Queue
리턴 Queue

getQueueDelay() 공개 메소드

public getQueueDelay ( ) : mixed
리턴 mixed

getResult() 공개 메소드

public getResult ( ) : ResultException | null
리턴 Cronario\Exception\ResultException | null

getSchedule() 공개 메소드

public getSchedule ( ) : integer | null | string
리턴 integer | null | string

getScheduleDelay() 공개 메소드

public getScheduleDelay ( ) : integer
리턴 integer return -1 : if schedule is not set return x >= 0 : if schedule is set

getStartOn() 공개 메소드

public getStartOn ( ) : mixed
리턴 mixed

getStorage() 보호된 메소드

protected getStorage ( ) : Cronario\Storage\StorageInterface
리턴 Cronario\Storage\StorageInterface

getWorkerClass() 공개 메소드

public getWorkerClass ( ) : string
리턴 string

hasAttempt() 공개 메소드

public hasAttempt ( ) : boolean
리턴 boolean

hasData() 공개 메소드

public hasData ( $key ) : boolean
$key
리턴 boolean

hasParam() 공개 메소드

public hasParam ( $key ) : boolean
$key
리턴 boolean

init() 보호된 메소드

Template Method
protected init ( )

isDebug() 공개 메소드

public isDebug ( ) : integer | null | string
리턴 integer | null | string

isStored() 공개 메소드

public isStored ( ) : boolean
리턴 boolean

isSync() 공개 메소드

public isSync ( ) : boolean
리턴 boolean

putIntoQueue() 공개 메소드

public putIntoQueue ( )

save() 공개 메소드

public save ( )

serialize() 공개 메소드

public serialize ( ) : string
리턴 string

setAppId() 공개 메소드

public setAppId ( $appId ) : AbstractJob
$appId
리턴 AbstractJob

setAttemptDelay() 공개 메소드

public setAttemptDelay ( $attemptDelay ) : AbstractJob
$attemptDelay
리턴 AbstractJob

setAttemptStrategy() 공개 메소드

public setAttemptStrategy ( $attemptStrategy ) : AbstractJob
$attemptStrategy
리턴 AbstractJob

setAttempts() 공개 메소드

public setAttempts ( $value ) : AbstractJob
$value
리턴 AbstractJob

setAttemptsMax() 공개 메소드

public setAttemptsMax ( $attemptMax ) : AbstractJob
$attemptMax
리턴 AbstractJob

setAuthor() 공개 메소드

public setAuthor ( $author )
$author

setCallbackDone() 공개 메소드

public setCallbackDone ( $job ) : AbstractJob
$job
리턴 AbstractJob

setCallbackError() 공개 메소드

public setCallbackError ( $job ) : AbstractJob
$job
리턴 AbstractJob

setCallbackFailure() 공개 메소드

public setCallbackFailure ( $job ) : AbstractJob
$job
리턴 AbstractJob

setCallbackSuccess() 공개 메소드

public setCallbackSuccess ( $job ) : AbstractJob
$job
리턴 AbstractJob

setCallbacks() 공개 메소드

public setCallbacks ( array $callbacks = [] )
$callbacks array

setComment() 공개 메소드

public setComment ( $comment ) : AbstractJob
$comment
리턴 AbstractJob

setCreateOn() 공개 메소드

public setCreateOn ( $value ) : AbstractJob
$value
리턴 AbstractJob

setData() 공개 메소드

public setData ( $key, $value )
$key
$value

setDebug() 공개 메소드

public setDebug ( $debug ) : AbstractJob
$debug
리턴 AbstractJob

setDeleteOn() 공개 메소드

public setDeleteOn ( $value ) : AbstractJob
$value
리턴 AbstractJob

setExpiredOn() 공개 메소드

public setExpiredOn ( $value ) : AbstractJob
$value
리턴 AbstractJob

setId() 공개 메소드

public setId ( $id ) : AbstractJob
$id
리턴 AbstractJob

setJobClass() 보호된 메소드

protected setJobClass ( $class ) : AbstractJob
$class
리턴 AbstractJob

setParam() 공개 메소드

public setParam ( $key, $value )
$key
$value

setParams() 공개 메소드

public setParams ( array $params = [] )
$params array

setParentId() 보호된 메소드

protected setParentId ( $parentId ) : AbstractJob
$parentId
리턴 AbstractJob

setPriority() 공개 메소드

public setPriority ( $priority ) : AbstractJob
$priority
리턴 AbstractJob

setResult() 공개 메소드

public setResult ( $result, null $data = null ) : ResultException | mixed
$result
$data null
리턴 Cronario\Exception\ResultException | mixed

setSchedule() 공개 메소드

public setSchedule ( $schedule ) : AbstractJob
$schedule
리턴 AbstractJob

setStartOn() 공개 메소드

public setStartOn ( $value ) : AbstractJob
$value
리턴 AbstractJob

setSync() 공개 메소드

public setSync ( $bool ) : AbstractJob
$bool
리턴 AbstractJob

setWorkerClass() 공개 메소드

public setWorkerClass ( $class ) : AbstractJob
$class
리턴 AbstractJob

unserialize() 공개 메소드

public unserialize ( string $serialized )
$serialized string

unsetData() 공개 메소드

public unsetData ( $key )
$key

프로퍼티 상세

$callbacks 보호되어 있는 프로퍼티

protected array $callbacks
리턴 array

$data 보호되어 있는 프로퍼티

protected array $data
리턴 array

$result 보호되어 있는 프로퍼티

protected ResultException,Cronario\Exception $result
리턴 Cronario\Exception\ResultException

$resultClass 보호되어 있는 정적으로 프로퍼티

protected static $resultClass

$workerClass 보호되어 있는 프로퍼티

protected null|string $workerClass
리턴 null | string