Search in sources :

Example 1 with CommittedTransactionSerializer

use of org.neo4j.com.CommittedTransactionSerializer in project neo4j by neo4j.

the class TxPullResponseEncoder method encode.

@Override
protected void encode(ChannelHandlerContext ctx, TxPullResponse response, ByteBuf out) throws Exception {
    NetworkFlushableByteBuf channel = new NetworkFlushableByteBuf(out);
    StoreIdMarshal.INSTANCE.marshal(response.storeId(), channel);
    new CommittedTransactionSerializer(channel).visit(response.tx());
}
Also used : NetworkFlushableByteBuf(org.neo4j.causalclustering.messaging.NetworkFlushableByteBuf) CommittedTransactionSerializer(org.neo4j.com.CommittedTransactionSerializer)

Aggregations

NetworkFlushableByteBuf (org.neo4j.causalclustering.messaging.NetworkFlushableByteBuf)1 CommittedTransactionSerializer (org.neo4j.com.CommittedTransactionSerializer)1