org.mobicents.cache
Class CacheData

java.lang.Object
  extended by org.mobicents.cache.CacheData

public class CacheData
extends Object

Common base proxy for runtime cached data.

Author:
martins

Constructor Summary
CacheData(org.jboss.cache.Fqn nodeFqn, MobicentsCache mobicentsCache)
           
 
Method Summary
 boolean create()
          Creates node to hold data in cache
 boolean exists()
          Verifies if node where data is stored exists in cache
 MobicentsCache getMobicentsCache()
           
protected  org.jboss.cache.Node getNode()
          Retrieves the cache Node which holds the data in cache Throws IllegalStateException if remove() was invoked
 org.jboss.cache.Fqn getNodeFqn()
          Retrieves the node fqn
 boolean isRemoved()
          Returns true if it was requested to remove the data from cache
 boolean remove()
          Removes node that holds data in cache
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CacheData

public CacheData(org.jboss.cache.Fqn nodeFqn,
                 MobicentsCache mobicentsCache)
Method Detail

exists

public boolean exists()
Verifies if node where data is stored exists in cache

Returns:

create

public boolean create()
Creates node to hold data in cache


isRemoved

public boolean isRemoved()
Returns true if it was requested to remove the data from cache

Returns:

remove

public boolean remove()
Removes node that holds data in cache


getNode

protected org.jboss.cache.Node getNode()
Retrieves the cache Node which holds the data in cache Throws IllegalStateException if remove() was invoked


getMobicentsCache

public MobicentsCache getMobicentsCache()
Returns:

getNodeFqn

public org.jboss.cache.Fqn getNodeFqn()
Retrieves the node fqn

Returns:
the nodeFqn


Copyright © 2011. All Rights Reserved.