org.gcube.data.harmonization.occurrence.operating
Class MergeHandler

java.lang.Object
  extended by java.lang.Thread
      extended by org.gcube.data.harmonization.occurrence.queue.QueueReceiver
          extended by org.gcube.data.harmonization.occurrence.operating.MergeHandler
All Implemented Interfaces:
Runnable

public class MergeHandler
extends QueueReceiver


Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler
 
Field Summary
 
Fields inherited from class org.gcube.data.harmonization.occurrence.queue.QueueReceiver
continueListening, currentMessage, errorCount, readCount
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
MergeHandler()
           
 
Method Summary
 void cleanup()
           
 void handleMessage()
           
 void rollback()
           
 
Methods inherited from class org.gcube.data.harmonization.occurrence.queue.QueueReceiver
bind, getComputedCount, getExchangeName, run, stopListening
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MergeHandler

public MergeHandler()
Method Detail

handleMessage

public void handleMessage()
                   throws Exception
Specified by:
handleMessage in class QueueReceiver
Throws:
Exception

rollback

public void rollback()
              throws Exception
Specified by:
rollback in class QueueReceiver
Throws:
Exception

cleanup

public void cleanup()
Specified by:
cleanup in class QueueReceiver


Copyright © 2012. All Rights Reserved.