org.gcube.data.harmonization.occurrence.queue
Class QueueReceiver
java.lang.Object
java.lang.Thread
org.gcube.data.harmonization.occurrence.queue.QueueReceiver
- All Implemented Interfaces:
- Runnable
- Direct Known Subclasses:
- ImportHandler, MergeHandler
public abstract class QueueReceiver
- extends Thread
| 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 |
continueListening
protected AtomicBoolean continueListening
readCount
protected AtomicInteger readCount
errorCount
protected AtomicInteger errorCount
currentMessage
protected String currentMessage
QueueReceiver
public QueueReceiver()
bind
public void bind(com.rabbitmq.client.Channel channel,
String routingKey)
throws IOException
- Throws:
IOException
getExchangeName
public String getExchangeName()
run
public void run()
- Specified by:
run in interface Runnable- Overrides:
run in class Thread
stopListening
public void stopListening()
getComputedCount
public int getComputedCount()
handleMessage
public abstract void handleMessage()
throws Exception
- Throws:
Exception
rollback
public abstract void rollback()
throws Exception
- Throws:
Exception
cleanup
public abstract void cleanup()
Copyright © 2012. All Rights Reserved.