You are here

function KalturaBatchService::freeExclusiveNotificationJob in Kaltura 6.2

File

kaltura_client/KalturaClient.php, line 4949

Class

KalturaBatchService

Code

function freeExclusiveNotificationJob($id, $processorLocation, $pocessorName, KalturaNotification $notificationJob = null) {
  $kparams = array();
  $this->client
    ->addParam($kparams, "id", $id);
  $this->client
    ->addParam($kparams, "processorLocation", $processorLocation);
  $this->client
    ->addParam($kparams, "pocessorName", $pocessorName);
  if ($notificationJob !== null) {
    $this->client
      ->addParam($kparams, "notificationJob", $notificationJob
      ->toParams());
  }
  $this->client
    ->queueServiceActionCall("batch", "freeExclusiveNotificationJob", $kparams);
  if ($this->client
    ->isMultiRequest()) {
    return null;
  }
  $resultObject = $this->client
    ->doQueue();
  $this->client
    ->throwExceptionIfError($resultObject);
  $this->client
    ->validateObjectType($resultObject, "KalturaBatchJob");
  return $resultObject;
}