[*] 踢人 拉人 切换视频媒体
This commit is contained in:
@@ -14,7 +14,6 @@ import java.lang.annotation.Target;
|
||||
* =[消息类型]> 同步请求
|
||||
* -[消息类型]) 全员广播:对所有的终端广播信令(排除自己)
|
||||
* +[消息类型]) 全员广播:对所有的终端广播信令(包含自己)
|
||||
* ...:其他自定义的透传内容
|
||||
*
|
||||
* @author acgist
|
||||
*/
|
||||
@@ -30,9 +29,6 @@ public @interface Description {
|
||||
String[] body() default { "{}" };
|
||||
|
||||
/**
|
||||
* 同步:需要等待服务端数据时使用
|
||||
* 异步:不用等待服务端数据时使用(服务端能主动通知类型消息都能使用异步)
|
||||
*
|
||||
* @return 数据流向
|
||||
*/
|
||||
String[] flow() default { "终端->信令服务->终端" };
|
||||
|
||||
@@ -1,25 +0,0 @@
|
||||
package com.acgist.taoyao.boot.annotation;
|
||||
|
||||
import java.lang.annotation.Documented;
|
||||
import java.lang.annotation.ElementType;
|
||||
import java.lang.annotation.Retention;
|
||||
import java.lang.annotation.RetentionPolicy;
|
||||
import java.lang.annotation.Target;
|
||||
|
||||
import org.springframework.beans.factory.config.ConfigurableBeanFactory;
|
||||
import org.springframework.context.annotation.Scope;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
/**
|
||||
* 模板:多例对象
|
||||
*
|
||||
* @author acgist
|
||||
*/
|
||||
@Scope(ConfigurableBeanFactory.SCOPE_PROTOTYPE)
|
||||
@Target(ElementType.TYPE)
|
||||
@Component
|
||||
@Retention(RetentionPolicy.RUNTIME)
|
||||
@Documented
|
||||
public @interface Prototype {
|
||||
|
||||
}
|
||||
@@ -1,5 +1,7 @@
|
||||
package com.acgist.taoyao.boot.config;
|
||||
|
||||
import java.util.function.BiFunction;
|
||||
|
||||
/**
|
||||
* 常量
|
||||
*
|
||||
@@ -107,6 +109,10 @@ public interface Constant {
|
||||
* 密码
|
||||
*/
|
||||
String PASSWORD = "password";
|
||||
/**
|
||||
* 数据
|
||||
*/
|
||||
String DATA = "data";
|
||||
/**
|
||||
* 名称
|
||||
*/
|
||||
@@ -228,4 +234,14 @@ public interface Constant {
|
||||
*/
|
||||
String SUBSCRIBE_TYPE = "subscribeType";
|
||||
|
||||
/**
|
||||
* 生产者ID生成器
|
||||
*/
|
||||
public static final BiFunction<String, String, String> STREAM_ID_PRODUCER = (type, producerId) -> type + "::" + producerId;
|
||||
|
||||
/**
|
||||
* 消费者ID生成器
|
||||
*/
|
||||
public static final BiFunction<String, String, String> STREAM_ID_CONSUMER = (producerStreamId, consumerId) -> producerStreamId + "->" + consumerId;
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user