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

tamorphosis.metamorphosis-server.1.4.6.1.source-code.TransactionCommands.proto Maven / Gradle / Ivy

There is a newer version: 1.4.6.2
Show newest version
/**
*
*????????Э??ṹ
*?ڱ?Ŀ¼??ִ?? protoc -I=./  --java_out=./ TransactionCommands.proto 
*/
package com.taobao.tddl.dbproxy.protocol;

option java_package = "com.taobao.metamorphosis.server.transaction.store";
option java_outer_classname = "TransactionCommands";
option optimize_for = SPEED;
enum TxCommandType{
	APPEND_MSG=1;
	TX_OP=2;
}

message TxCommand{
	required TxCommandType cmdType=1;
	required bytes cmd_content=2;
	optional bool force=3 [default = false];
}

message AppendMessageCommand{
  	required int64 message_id=1;
  	required bytes put_command=2;
}
enum TransactionType{
	XA_PREPARE = 1;
	XA_COMMIT = 2;
	XA_ROLLBACK = 3;
	LOCAL_COMMIT = 4;
 	LOCAL_ROLLBACK = 5;
}

message TransactionOperation{
	required TransactionType type=1;
	required bool was_prepared=2;
	required string transaction_id=3;
	optional int32 data_length=4;  //???????ݵij???
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy