<?php
namespace Freyo\LaravelQueueCMQ\Queue\Driver;
class TopicMeta
{
public $maxMsgSize;
public $msgRetentionSeconds;
public $createTime;
public $lastModifyTime;
public function __construct()
{
$this->maxMsgSize = 65536;
$this->msgRetentionSeconds = 86400;
$this->createTime = 0;
$this->lastModifyTime = 0;
$this->filterType = 1;
}
public function __toString()
{
$info = array(
"maxMsgSize" => $this->maxMsgSize,
"msgRetentionSeconds" => $this->msgRetentionSeconds,
"createTime" => $this->createTime,
"lastModifyTime" => $this->lastModifyTime,
"filterType" => $this->filterType
);
return json_encode($info);
}
}