Class TaggableObject
java.lang.Object
com.scaleout.client.caching.query.TaggableObject
- All Implemented Interfaces:
Taggable
,Serializable
An implementation of
Taggable
.- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Adds the tags specified in thetags
to the object's tag list.void
Clears all tags from the object's tag list.com.scaleout.client.messaging.messages.TagHolder
getTags()
Method used byCache
to store tags as SOSS attributes.boolean
hasAllTags
(String... tags) Determines whether this object has all the tags specified bytags
.boolean
hasAnyTags
(String... tags) Determines whether this object has any of the tags specified bytags
.void
removeTags
(String... tags) Removes the tags specified in thetags
from object's tag list.
-
Constructor Details
-
TaggableObject
public TaggableObject()Construct the taggable object.
-
-
Method Details
-
getTags
public com.scaleout.client.messaging.messages.TagHolder getTags()Description copied from interface:Taggable
Method used byCache
to store tags as SOSS attributes. It should return a reference to aTagHolder
object associated with this class. -
hasAllTags
Determines whether this object has all the tags specified bytags
.- Parameters:
tags
- tag list- Returns:
true
if all tags are present,false
otherwise- Throws:
CacheException
- if unexpected exception occurs
-
hasAnyTags
Determines whether this object has any of the tags specified bytags
.- Parameters:
tags
- tag list- Returns:
true
if any tags are present,false
otherwise- Throws:
CacheException
- if unexpected exception occurs
-
addTags
Adds the tags specified in thetags
to the object's tag list.- Parameters:
tags
- tags to add- Throws:
CacheException
- if unexpected exception occurs
-
removeTags
Removes the tags specified in thetags
from object's tag list.- Parameters:
tags
- tags to remove- Throws:
CacheException
- if unexpected exception occurs
-
clearTags
public void clearTags()Clears all tags from the object's tag list.
-