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

io.streamthoughts.jikkou.kafka.internals.DataSerde Maven / Gradle / Ivy

The newest version!
/*
 * SPDX-License-Identifier: Apache-2.0
 * Copyright (c) The original authors
 *
 * Licensed under the Apache Software License version 2.0, available at http://www.apache.org/licenses/LICENSE-2.0
 */
package io.streamthoughts.jikkou.kafka.internals;

import io.streamthoughts.jikkou.kafka.model.DataHandle;
import java.nio.ByteBuffer;
import java.util.Map;
import java.util.Optional;

public interface DataSerde {

    Optional serialize(String topicName,
                                   DataHandle data,
                                   Map properties,
                                   boolean isForRecordKey
    );

    Optional deserialize(String topicName,
                                     ByteBuffer data,
                                     Map properties,
                                     boolean isForRecordKey
    );
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy