@LoadLevel(name="protostuff") public class ProtostuffUndoLogParser extends Object implements UndoLogParser, org.apache.seata.common.executor.Initialize
| Modifier and Type | Class and Description |
|---|---|
static class |
ProtostuffUndoLogParser.DateDelegate
Delegate for java.util.Date
|
static class |
ProtostuffUndoLogParser.SqlDateDelegate
Delegate for java.sql.Date
|
static class |
ProtostuffUndoLogParser.TimeDelegate
Delegate for java.sql.Time
|
static class |
ProtostuffUndoLogParser.TimestampDelegate
Delegate for java.sql.Timestamp
|
| Constructor and Description |
|---|
ProtostuffUndoLogParser() |
| 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() |
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 arrayCopyright © 2024 Apache. All rights reserved.