public interface Transaction
| 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 e)
Set the message status with exception class name.
|
static final String SUCCESS
void setStatus(String status)
status - message status. "0" means success, otherwise error code.void setStatus(Throwable e)
e - exception.void complete()
Copyright © 2018 Ctrip, Inc.. All rights reserved.