All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.codingapi.txlcn.txmsg.MessageConstants Maven / Gradle / Ivy

The newest version!
/*
 * Copyright 2017-2019 CodingApi .
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.codingapi.txlcn.txmsg;

/**
 * Description:
 * Date: 2018/12/6
 *
 * @author ujued
 */
public class MessageConstants {

    /**
     * 创建事务组
     */
    public static final String ACTION_CREATE_GROUP = "createGroup";

    /**
     * 加入事务组
     */
    public static final String ACTION_JOIN_GROUP = "joinGroup";

    /**
     * 关闭事务组
     */
    public static final String ACTION_NOTIFY_GROUP = "notifyGroup";

    /**
     * 事务通知
     */
    public static final String ACTION_NOTIFY_UNIT = "notifyUnit";

    /**
     * 询问事务状态
     */
    public static final String ACTION_ASK_TRANSACTION_STATE = "askTransactionState";

    /**
     * 写异常记录
     */
    public static final String ACTION_WRITE_EXCEPTION = "writeException";

    /**
     * 心态检测
     */
    public static final String ACTION_HEART_CHECK = "heartCheck";

    /**
     * 通知建立连接
     */
    public static final String ACTION_NEW_TXMANAGER = "ntm";

    /**
     * 获取切面日志
     */
    public static final String ACTION_GET_ASPECT_LOG = "gal";

    /**
     * 删除切面日志
     */
    public static final String ACTION_DELETE_ASPECT_LOG = "dal";

    /**
     * 初始化客户端
     */
    public static final String ACTION_INIT_CLIENT = "init";

    /**
     * 查询分布式事务锁
     */
    public static final String ACTION_ACQUIRE_DTX_LOCK = "qdtxl";

    /**
     * 释放分布式事务锁
     */
    public static final String ACTION_RELEASE_DTX_LOCK = "rdtxl";

    /**
     * 清理失效的TM
     */
    public static final String ACTION_CLEAN_INVALID_TM = "citm";

    /**
     * 查询TM Cluster
     */
    public static final String ACTION_QUERY_TM_CLUSTER = "qtmc";

    /**
     * 发起请求状态
     */
    public static final int STATE_REQUEST = 100;

    /**
     * 响应成功状态
     */
    public static final int STATE_OK = 200;

    /**
     * 响应异常状态
     */
    public static final int STATE_EXCEPTION = 500;

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy