Package org.jboss.as.ejb3.cache
Interface Contextual<C>
-
- Type Parameters:
C- a cache context
- All Known Implementing Classes:
StatefulSessionComponentInstance
public interface Contextual<C>Exposes a mechanism for attaching a context to a cached object- Author:
- Paul Ferraro
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description CgetCacheContext()Returns the cache context of this cached object.default CremoveCacheContext()Removes any cache context associated with this cached objectvoidsetCacheContext(C context)Sets the cache context of this cached object.
-
-
-
Method Detail
-
getCacheContext
C getCacheContext()
Returns the cache context of this cached object.- Returns:
- a cache context
-
setCacheContext
void setCacheContext(C context)
Sets the cache context of this cached object.- Parameters:
context- a cache context
-
removeCacheContext
default C removeCacheContext()
Removes any cache context associated with this cached object- Returns:
- the removed cache context
-
-