package com.sv.netty.config;

import com.sv.netty.netty.ChannelParam;
import io.netty.util.AttributeKey;

/**
 * Created by ranfi on 2/22/16.
 */
public class Constant {

    public static final String ACCESS_TOKEN_KEY = "access_token_key";

    //消息队列发送消息到netty
    public static final String sendToMachine = "netty-doll-machine";

    //消息队列发送消息到netty
    public static final String sendToService = "netty-doll-service";

    //消息队列发送消息到netty
    public static final String ROOM_SERVICE_TOPIC = "gt-room-service-topic";

    /**
     * session中存储终端发送的额外参数
     */
    public static AttributeKey<ChannelParam> CHANNEL_PARAM = AttributeKey.newInstance("CHANNEL_PARAM");

    /**
     * 每局结束后的保护时间
     */
    public static final Integer GAME_OVER_PROTECTION_SECONDS = 5;


}
