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

at.newmedialab.ldclient.model.CacheEntry Maven / Gradle / Ivy

The newest version!
/**
 * Copyright (C) 2013 Salzburg Research.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package at.newmedialab.ldclient.model;

import org.openrdf.model.URI;

import java.io.Serializable;
import java.util.Date;

/**
 * The cache entry for a URI resource managed by the Linked Data Cache. Contains maintenance information about
 * the resource, i.e. when it has been retrieved last, when to retrieve it next, etc.
 * 

* User: sschaffe */ public class CacheEntry implements Serializable { private static final long serialVersionUID = 1L; /** * The URI resource managed by this cache entry. */ private URI resource; /** * The date when this resource has been retrieved the last time. */ private Date lastRetrieved; /** * The date when this resource needs to be retrieved again according to expiry configuration. */ private Date expiryDate; /** * The number of times this resource has already been updated. */ private Long updateCount; public CacheEntry() { } public URI getResource() { return resource; } public void setResource(URI resource) { this.resource = resource; } public Date getLastRetrieved() { return lastRetrieved; } public void setLastRetrieved(Date lastRetrieved) { this.lastRetrieved = lastRetrieved; } public Date getExpiryDate() { return expiryDate; } public void setExpiryDate(Date expiryDate) { this.expiryDate = expiryDate; } public Long getUpdateCount() { return updateCount; } public void setUpdateCount(Long updateCount) { this.updateCount = updateCount; } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy