T - The type of object that this Entity represents in a Cache.public interface Entity<T> extends Serializable
Copyright (C) 2014 John Wassilak (john@wassilak.com)
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.
| Modifier and Type | Field and Description |
|---|---|
static Long |
MAX_TTL
The MAX_TTL constant represents the maximum allowable value of an Entity's timeToLive property.
|
static Long |
MIN_TTL
The MIN_TTL constant represents the minimum allowable value of an Entity's timeToLive property.
|
| Modifier and Type | Method and Description |
|---|---|
T |
getObject()
The getObject method returns the underlying object that this cache Entity represents.
|
Date |
getTimeStamp()
The getTimeStamp method returns the date/time that the entity was created.
|
Long |
getTimeToLive()
The getTimeToLive method returns the time that the Entity can live before it should be removed from the cache, in
milliseconds.
|
static final Long MIN_TTL
static final Long MAX_TTL
T getObject()
Date getTimeStamp()
Long getTimeToLive()
Copyright © 2014. All rights reserved.