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

com.github.segmentio.models.Batch Maven / Gradle / Ivy

The newest version!
package com.github.segmentio.models;

import java.util.List;
import java.util.UUID;

import org.joda.time.DateTime;

public class Batch {

	private String writeKey;
	private List batch;
	private String messageId;
	private DateTime sentAt;
	
	public Batch(String writeKey, List batch) {
		this.writeKey = writeKey;
		this.batch = batch;
		this.messageId = UUID.randomUUID().toString();
	}
	
	public String getWriteKey() {
		return writeKey;
	}
	
	public void setWriteKey(String writeKey) {
		this.writeKey = writeKey;
	}
	
	public List getBatch() {
		return batch;
	}
	
	public void setBatch(List batch) {
		this.batch = batch;
	}
	
	public String getMessageId() {
		return messageId;
	}
	
	public void setMessageId(String messageId) {
		this.messageId = messageId;
	}
	
	public DateTime getSentAt() {
		return sentAt;
	}
	
	public void setSentAt(DateTime sentAt) {
		this.sentAt = sentAt;
	}
	
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy