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

com.wepay.waltz.common.metadata.ConnectionMetadataSerializer Maven / Gradle / Ivy

There is a newer version: 0.13.2
Show newest version
package com.wepay.waltz.common.metadata;

import com.wepay.zktools.zookeeper.serializer.SerializerHelper;

import java.io.DataInput;
import java.io.DataOutput;
import java.io.IOException;

/**
 * Implements the methods to serialize and deserialize {@link ConnectionMetadata} object.
 */
public class ConnectionMetadataSerializer extends SerializerHelper {

    public static final ConnectionMetadataSerializer INSTANCE = new ConnectionMetadataSerializer();

    @Override
    public void serialize(ConnectionMetadata connectionMetadata, DataOutput out) throws IOException {
        connectionMetadata.writeTo(out);
    }

    @Override
    public ConnectionMetadata deserialize(DataInput in) throws IOException {
        return ConnectionMetadata.readFrom(in);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy