All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.shyiko.mysql.binlog.event.TransactionPayloadEventData Maven / Gradle / Ivy

There is a newer version: 0.40.2
Show newest version
package com.github.shyiko.mysql.binlog.event;

import java.util.ArrayList;


public class TransactionPayloadEventData implements EventData {
    private int payloadSize;
    private int uncompressedSize;
    private int compressionType;
    private byte[] payload;
    private ArrayList uncompressedEvents;

    public ArrayList getUncompressedEvents() {
        return uncompressedEvents;
    }

    public void setUncompressedEvents(ArrayList uncompressedEvents) {
        this.uncompressedEvents = uncompressedEvents;
    }

    public int getPayloadSize() {
        return payloadSize;
    }

    public void setPayloadSize(int payloadSize) {
        this.payloadSize = payloadSize;
    }

    public int getUncompressedSize() {
        return uncompressedSize;
    }

    public void setUncompressedSize(int uncompressedSize) {
        this.uncompressedSize = uncompressedSize;
    }

    public int getCompressionType() {
        return compressionType;
    }

    public void setCompressionType(int compressionType) {
        this.compressionType = compressionType;
    }

    public byte[] getPayload() {
        return payload;
    }

    public void setPayload(byte[] payload) {
        this.payload = payload;
    }

    @Override
    public String toString() {
        final StringBuilder sb = new StringBuilder();
        sb.append("TransactionPayloadEventData");
        sb.append("{compression_type=").append(compressionType).append(", payload_size=").append(payloadSize).append(", uncompressed_size='").append(uncompressedSize).append('\'');
        sb.append(", payload: ");
        sb.append("\n");
        for (Event e : uncompressedEvents) {
            sb.append(e.toString());
            sb.append("\n");
        }
        sb.append("}");
        return sb.toString();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy