T
- The type of service stored and returned from this cachepublic interface SingleCache<T>
Modifier and Type | Method and Description |
---|---|
T |
getCache()
This can be used for scopes that will only every be created once.
|
boolean |
isCacheSet()
Returns true if this cache has been set
|
void |
releaseCache()
Removes the cached value and makes it such
that this cache has not been set
|
void |
setCache(T cacheMe)
Sets the value into the cache
|
T getCache()
boolean isCacheSet()
void setCache(T cacheMe)
cacheMe
- A single value that can be cached in this
active descriptorvoid releaseCache()
Copyright © 2009–2019 Oracle Corporation. All rights reserved.