com.fatwire.gst.foundation.tagging
Class TaggedAssetRealtimeCacheUpdater

java.lang.Object
  extended by com.fatwire.realtime.util.RTWorkerBase
      extended by com.fatwire.realtime.PageCacheUpdaterImpl
          extended by com.fatwire.gst.foundation.tagging.TaggedAssetRealtimeCacheUpdater
All Implemented Interfaces:
com.fatwire.cs.core.realtime.messaging.MonitoredJob, com.fatwire.cs.core.realtime.PageCacheUpdater

public final class TaggedAssetRealtimeCacheUpdater
extends com.fatwire.realtime.PageCacheUpdaterImpl

RealTime publishing includes an API entitled RealTime CacheUpdater. We will override the default com.fatwire.realtime.PageCacheUpdaterImpl to override the beforeSelect() method. The flush and regen keys will be extended, to automatically include all pagelets containing the GSTTag attribute value. This ensures that even though parent has not changed, pagelets that reference it are automatically flushed. This ensures that by simply tagging an asset, it automatically and instantly appears in pages that render it.

The GSTTagRegistry table is read for the specific assets before the new values are inserted. This is to make sure that pagelets are also flushed with the old tag values for the cases where the tag is deleted or the values have changed. Implementation examples can be found in the guide Customizing RealTime Publishing Cache Management.

Since:
Jul 30, 2010
Author:
Tony Field

Field Summary
 
Fields inherited from class com.fatwire.realtime.PageCacheUpdaterImpl
log
 
Fields inherited from class com.fatwire.realtime.util.RTWorkerBase
context, id, messenger, pubsession
 
Fields inherited from interface com.fatwire.cs.core.realtime.messaging.MonitoredJob
STATUS_CANCELLED, STATUS_DONE, STATUS_FAILED, STATUS_RUNNING, STATUS_WAITING
 
Constructor Summary
TaggedAssetRealtimeCacheUpdater()
           
 
Method Summary
protected  void beforeSelect(COM.FutureTense.Interfaces.ICS ics, Collection<String> invalKeys, Collection<String> regenKeys, Collection<com.fatwire.assetapi.data.AssetId> assetIds)
           
 
Methods inherited from class com.fatwire.realtime.PageCacheUpdaterImpl
afterAllDone, beforeFlush, beforeRegen, execute
 
Methods inherited from class com.fatwire.realtime.util.RTWorkerBase
getContext, getId, getJobNames, getMessenger, getPubsession, setContext, setId, setMessenger, setPubsession
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.fatwire.cs.core.realtime.PageCacheUpdater
getContext, setContext
 
Methods inherited from interface com.fatwire.cs.core.realtime.messaging.MonitoredJob
getJobNames, getMessenger, setMessenger
 

Constructor Detail

TaggedAssetRealtimeCacheUpdater

public TaggedAssetRealtimeCacheUpdater()
Method Detail

beforeSelect

protected void beforeSelect(COM.FutureTense.Interfaces.ICS ics,
                            Collection<String> invalKeys,
                            Collection<String> regenKeys,
                            Collection<com.fatwire.assetapi.data.AssetId> assetIds)
Overrides:
beforeSelect in class com.fatwire.realtime.PageCacheUpdaterImpl


Copyright © 2010-2013 Oracle Corporation. All Rights Reserved.