org.jboss.dna.connector.federation.executor
Class ProjectedGetPropertiesCommand
java.lang.Object
org.jboss.dna.connector.federation.executor.ActsOnProjectedPathCommand<GetPropertiesCommand>
org.jboss.dna.connector.federation.executor.ProjectedGetPropertiesCommand
- All Implemented Interfaces:
- Serializable, Cacheable, ActsOnPath, GetPropertiesCommand, GraphCommand
public class ProjectedGetPropertiesCommand
- extends ActsOnProjectedPathCommand<GetPropertiesCommand>
- implements GetPropertiesCommand
- Author:
- Randall Hauch
- See Also:
- Serialized Form
ProjectedGetPropertiesCommand
public ProjectedGetPropertiesCommand(GetPropertiesCommand delegate,
Path projectedPath)
getCachePolicy
public CachePolicy getCachePolicy()
- Get the caching policy to be used for this object.
Note that the values of the policy are relative to the time the node was loaded
, so the same
instance can be used for many nodes.
- Specified by:
getCachePolicy
in interface Cacheable
- Returns:
- cachePolicy the caching policy, which may not be null
- See Also:
Cacheable.getCachePolicy()
getTimeLoaded
public DateTime getTimeLoaded()
- Get the time that this node data was originally loaded.
- Specified by:
getTimeLoaded
in interface Cacheable
- Returns:
- the system time (in milliseconds) that the node data was loaded
- See Also:
Cacheable.getTimeLoaded()
setCachePolicy
public void setCachePolicy(CachePolicy cachePolicy)
- Set the caching policy for this object.
- Specified by:
setCachePolicy
in interface Cacheable
- Parameters:
cachePolicy
- the caching policy to use for this object- See Also:
Cacheable.setCachePolicy(org.jboss.dna.graph.cache.CachePolicy)
setProperty
public void setProperty(Property property)
- Set the values for the named property. Any existing property values, if previously set, will be overwritten. If there are
no property vlaues or if all of the property values are null, the property will be removed.
- Specified by:
setProperty
in interface GetPropertiesCommand
- Parameters:
property
- the property- See Also:
GetPropertiesCommand.setProperty(org.jboss.dna.graph.properties.Property)
Copyright © 2008-Present JBoss a division of Red Hat. All Rights Reserved.