use of io.seata.core.protocol.transaction.AbstractGlobalEndResponse in project seata by seata.
the class AbstractGlobalEndResponseCodec method encode.
@Override
public <T> void encode(T t, ByteBuf in) {
super.encode(t, in);
AbstractGlobalEndResponse abstractGlobalEndResponse = (AbstractGlobalEndResponse) t;
GlobalStatus globalStatus = abstractGlobalEndResponse.getGlobalStatus();
in.writeByte(globalStatus.getCode());
}
use of io.seata.core.protocol.transaction.AbstractGlobalEndResponse in project seata by seata.
the class AbstractGlobalEndResponseCodec method decode.
@Override
public <T> void decode(T t, ByteBuffer in) {
super.decode(t, in);
AbstractGlobalEndResponse abstractGlobalEndResponse = (AbstractGlobalEndResponse) t;
abstractGlobalEndResponse.setGlobalStatus(GlobalStatus.get(in.get()));
}
Aggregations