package com.rf.psychological.threadpool;

import com.alibaba.fastjson.JSONObject;
import com.rf.psychological.utils.SendMessageUtil;
import lombok.Getter;
import lombok.Setter;

/**
 * @Author:zzf
 * @Date:2022/6/22:18:23
 * @Description:
 */
@Getter
@Setter
public class ThreadTask implements Runnable{
    private String taskName;
    private JSONObject jsonObject;
    public ThreadTask(String name,JSONObject jsonObject) {
        this.taskName = name;
        this.jsonObject = jsonObject;
    }
    public void run() {
        //输出执行线程的名称
        SendMessageUtil.planMessage(jsonObject);
    }
}
