@LoadLevel(name="jackson") public class JacksonUndoLogParser extends Object implements UndoLogParser, org.apache.seata.common.executor.Initialize
| Constructor and Description |
|---|
JacksonUndoLogParser() |
| Modifier and Type | Method and Description |
|---|---|
BranchUndoLog |
decode(byte[] bytes)
Decode byte array to branch undo log.
|
byte[] |
encode(BranchUndoLog branchUndoLog)
Encode branch undo log to byte array.
|
byte[] |
getDefaultContent()
Get default context of this parser
|
String |
getName()
Get the name of parser;
|
void |
init() |
static void |
setZoneOffset(ZoneId zoneId)
set zone id
|
public static final String NAME
public void init()
init in interface org.apache.seata.common.executor.Initializepublic String getName()
UndoLogParsergetName in interface UndoLogParserpublic byte[] getDefaultContent()
UndoLogParsergetDefaultContent in interface UndoLogParserpublic byte[] encode(BranchUndoLog branchUndoLog)
UndoLogParserencode in interface UndoLogParserbranchUndoLog - the branch undo logpublic BranchUndoLog decode(byte[] bytes)
UndoLogParserdecode in interface UndoLogParserbytes - the byte arraypublic static void setZoneOffset(ZoneId zoneId)
zoneId - the zoneIdCopyright © 2024 Apache. All rights reserved.