com.transferwise.tasks.dao.ITaskDaoDataSerializer Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of tw-tasks-core Show documentation
Show all versions of tw-tasks-core Show documentation
Transferwise Tasks Executor - Fire and forget until Alert.
package com.transferwise.tasks.dao;
import com.transferwise.tasks.ITasksService.AddTaskRequest.CompressionRequest;
import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
import javax.annotation.Nonnull;
import lombok.Data;
import lombok.experimental.Accessors;
@SuppressFBWarnings("EI_EXPOSE_REP")
public interface ITaskDaoDataSerializer {
SerializedData serialize(@Nonnull byte[] data, CompressionRequest compression);
byte[] deserialize(SerializedData serializedData);
@Data
@Accessors(chain = true)
class SerializedData {
private int dataFormat;
private byte[] data;
}
}