1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
  | package com.genersoft.iot.vmp.media.zlm.dto; 
 |    
 |  import com.alibaba.fastjson2.JSONObject; 
 |    
 |  import java.time.Instant; 
 |    
 |  /** 
 |   * zlm hook事件的参数 
 |   * @author lin 
 |   */ 
 |  public interface IHookSubscribe { 
 |    
 |      /** 
 |       * 获取hook类型 
 |       * @return hook类型 
 |       */ 
 |      HookType getHookType(); 
 |    
 |      /** 
 |       * 获取hook的具体内容 
 |       * @return hook的具体内容 
 |       */ 
 |      JSONObject getContent(); 
 |    
 |      /** 
 |       * 设置过期时间 
 |       * @param instant 过期时间 
 |       */ 
 |      void setExpires(Instant instant); 
 |    
 |      /** 
 |       * 获取过期时间 
 |       * @return 过期时间 
 |       */ 
 |      Instant getExpires(); 
 |  } 
 |  
  |