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

com.sailthru.client.params.job.SnapshotJob Maven / Gradle / Ivy

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