KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jboss > portal > server > output > cache > TimedContent


1 /*****************************************
2  * *
3  * JBoss Portal: The OpenSource Portal *
4  * *
5  * Distributable under LGPL license. *
6  * See terms of license at gnu.org. *
7  * *
8  *****************************************/

9 package org.jboss.portal.server.output.cache;
10
11 import org.jboss.portal.server.output.FragmentResult;
12
13 /**
14  * A fragment result + its expiration date.
15  *
16  * @author <a HREF="mailto:julien@jboss.org">Julien Viet</a>
17  * @version $Revision: 1.1 $
18  */

19 public abstract class TimedContent
20 {
21
22    /** Expiration date. */
23    private final long expirationTimeMillis;
24
25    public TimedContent(long expirationTimeMillis)
26    {
27       this.expirationTimeMillis = expirationTimeMillis;
28    }
29
30    /**
31     * Return the content, possibly null.
32     */

33    public abstract FragmentResult getContent();
34
35    /**
36     *
37     */

38    public long getExpirationTimeMillis()
39    {
40       return expirationTimeMillis;
41    }
42 }
43
Popular Tags