org.jboss.metadata.plugins.cache
Interface CacheItem<V>

Type Parameters:
V - value key type

public interface CacheItem<V>

Simple cache item. Candidate to be purged via similar cache mechanisms.

Author:
Ales Justin

Method Summary
 void clear()
          Clear node.
 V get()
          Get value.
 V put(V value)
          Put value.
 

Method Detail

put

V put(V value)
Put value.

Parameters:
value - the value
Returns:
old value if exists

get

V get()
Get value.

Returns:
old value if exists

clear

void clear()
Clear node.



Copyright © 2010 JBoss, a division of Red Hat, Inc.. All Rights Reserved.