org.alfresco.repo.content.replication
Class ReplicatingContentStore.ReplicatingWriteListener

java.lang.Object
  extended by org.alfresco.repo.content.AbstractContentStreamListener
      extended by org.alfresco.repo.content.replication.ReplicatingContentStore.ReplicatingWriteListener
All Implemented Interfaces:
org.alfresco.service.cmr.repository.ContentStreamListener
Enclosing class:
ReplicatingContentStore

public static class ReplicatingContentStore.ReplicatingWriteListener
extends AbstractContentStreamListener

Replicates the content upon stream closure. If the thread pool is available, then the process will be asynchronous.


Constructor Summary
ReplicatingContentStore.ReplicatingWriteListener(java.util.List stores, org.alfresco.service.cmr.repository.ContentWriter writer, java.util.concurrent.ThreadPoolExecutor threadPoolExecutor)
           
 
Method Summary
 void contentStreamClosedImpl()
          ContentStreamListeners must implement this method.
 
Methods inherited from class org.alfresco.repo.content.AbstractContentStreamListener
contentStreamClosed, setRetryingTransactionHelper
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReplicatingContentStore.ReplicatingWriteListener

public ReplicatingContentStore.ReplicatingWriteListener(java.util.List stores,
                                                        org.alfresco.service.cmr.repository.ContentWriter writer,
                                                        java.util.concurrent.ThreadPoolExecutor threadPoolExecutor)
Method Detail

contentStreamClosedImpl

public void contentStreamClosedImpl()
                             throws org.alfresco.service.cmr.repository.ContentIOException
Description copied from class: AbstractContentStreamListener
ContentStreamListeners must implement this method. The implementation must be idempotent. The method will be executed inside a retrying transaction helper if one is set. Listeners will not generally require this unless they write to the database.

Specified by:
contentStreamClosedImpl in class AbstractContentStreamListener
Throws:
org.alfresco.service.cmr.repository.ContentIOException


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.