org.eclipse.emf.cdo.common.commit.handler
Class AsyncCommitInfoHandler

java.lang.Object
  extended by org.eclipse.net4j.util.event.Notifier
      extended by org.eclipse.net4j.util.lifecycle.Lifecycle
          extended by org.eclipse.net4j.util.concurrent.Worker
              extended by org.eclipse.net4j.util.concurrent.QueueWorker<CDOCommitInfo>
                  extended by org.eclipse.emf.cdo.common.commit.handler.AsyncCommitInfoHandler
All Implemented Interfaces:
CDOCommitInfoHandler, INotifier, ILifecycle, ILifecycle.DeferrableActivation

public class AsyncCommitInfoHandler
extends QueueWorker<CDOCommitInfo>
implements CDOCommitInfoHandler

A commit info handler that asynchronously delegates commit infos to another handler.

Since:
4.0

Nested Class Summary
 
Nested classes/interfaces inherited from class org.eclipse.net4j.util.concurrent.Worker
Worker.WorkContext
 
Nested classes/interfaces inherited from interface org.eclipse.net4j.util.lifecycle.ILifecycle
ILifecycle.DeferrableActivation
 
Field Summary
 
Fields inherited from class org.eclipse.net4j.util.concurrent.QueueWorker
DEFAULT_POLL_MILLIS
 
Fields inherited from class org.eclipse.net4j.util.concurrent.Worker
DEFAULT_ERROR_HANDLER, DEFAULT_TIMEOUT
 
Fields inherited from class org.eclipse.net4j.util.lifecycle.Lifecycle
USE_LABEL
 
Constructor Summary
AsyncCommitInfoHandler(CDOCommitInfoHandler delegate)
           
 
Method Summary
protected  boolean doRemainingWorkBeforeDeactivate()
           
protected  String getThreadName()
           
 void handleCommitInfo(CDOCommitInfo commitInfo)
           
protected  void work(Worker.WorkContext context, CDOCommitInfo commitInfo)
           
 
Methods inherited from class org.eclipse.net4j.util.concurrent.QueueWorker
addWork, clearQueue, createQueue, doActivate, doDeactivate, getPollMillis, noWork, setPollMillis, work
 
Methods inherited from class org.eclipse.net4j.util.concurrent.Worker
getActivationTimeout, getDeactivationTimeout, getGlobalErrorHandler, handleError, isDaemon, setActivationTimeout, setDaemon, setDeactivationTimeout, setGlobalErrorHandler
 
Methods inherited from class org.eclipse.net4j.util.lifecycle.Lifecycle
activate, checkActive, checkArg, checkArg, checkInactive, checkNull, checkState, checkState, deactivate, deferredActivate, doAfterActivate, doBeforeActivate, doBeforeDeactivate, dump, getLifecycleState, isActive, isDeferredActivation, toString
 
Methods inherited from class org.eclipse.net4j.util.event.Notifier
addListener, fireEvent, fireEvent, fireEvent, fireThrowable, firstListenerAdded, getListeners, getNotificationService, hasListeners, lastListenerRemoved, removeListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.eclipse.net4j.util.event.INotifier
addListener, getListeners, hasListeners, removeListener
 

Constructor Detail

AsyncCommitInfoHandler

public AsyncCommitInfoHandler(CDOCommitInfoHandler delegate)
Method Detail

handleCommitInfo

public void handleCommitInfo(CDOCommitInfo commitInfo)
Specified by:
handleCommitInfo in interface CDOCommitInfoHandler

work

protected void work(Worker.WorkContext context,
                    CDOCommitInfo commitInfo)
Specified by:
work in class QueueWorker<CDOCommitInfo>

doRemainingWorkBeforeDeactivate

protected boolean doRemainingWorkBeforeDeactivate()
Overrides:
doRemainingWorkBeforeDeactivate in class QueueWorker<CDOCommitInfo>

getThreadName

protected String getThreadName()
Overrides:
getThreadName in class Worker


Copyright (c) 2011, 2012 Eike Stepper (Berlin, Germany) and others.