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

com.hubspot.singularity.mesos.OfferCache Maven / Gradle / Ivy

package com.hubspot.singularity.mesos;

import java.util.List;

import org.apache.mesos.v1.Protos.Offer;
import org.apache.mesos.v1.Protos.OfferID;

import com.hubspot.singularity.mesos.SingularityOfferCache.CachedOffer;

public interface OfferCache {

  public void cacheOffer(long timestamp, Offer offer);

  public void rescindOffer(OfferID offerId);

  public void useOffer(CachedOffer cachedOffer);

  public List checkoutOffers();

  public void returnOffer(CachedOffer cachedOffer);

  public List peekOffers();

  public void disableOfferCache();

  public void enableOfferCache();

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy