public class CatTransaction extends Object implements Transaction
SUCCESS| Constructor and Description |
|---|
CatTransaction(Object catTransaction) |
| Modifier and Type | Method and Description |
|---|---|
void |
addData(String key,
Object value)
add one key-value pair to the message.
|
void |
complete()
Complete the message construction.
|
void |
setStatus(String status)
Set the message status.
|
void |
setStatus(Throwable status)
Set the message status with exception class name.
|
public CatTransaction(Object catTransaction)
public void setStatus(String status)
TransactionsetStatus in interface Transactionstatus - message status. "0" means success, otherwise error code.public void setStatus(Throwable status)
TransactionsetStatus in interface Transactionstatus - exception.public void addData(String key, Object value)
TransactionaddData in interface Transactionpublic void complete()
Transactioncomplete in interface TransactionCopyright © 2018 Ctrip, Inc.. All rights reserved.