com.sailthru.client.params.job.SnapshotJob Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sailthru-java-client Show documentation
Show all versions of sailthru-java-client Show documentation
Java client library for Sailthru API
The newest version!
package com.sailthru.client.params.job;
import com.google.gson.reflect.TypeToken;
import com.sailthru.client.params.query.Query;
import java.lang.reflect.Type;
import java.util.HashMap;
import java.util.Map;
/**
*
* @author Prajwal Tuladhar
*/
public class SnapshotJob extends Job {
private static final String JOB = "snapshot";
protected Map query;
public SnapshotJob() {
this.job = JOB;
}
public SnapshotJob setQuery(Query query) {
this.query = query.toHashMap();
return this;
}
@Override
public Type getType() {
return new TypeToken() {}.getType();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy