org.apache.camel.impl
Class PollingConsumerSupport<E extends Exchange>

java.lang.Object
  extended by org.apache.camel.impl.ServiceSupport
      extended by org.apache.camel.impl.PollingConsumerSupport<E>
All Implemented Interfaces:
Consumer<E>, PollingConsumer<E>, Service
Direct Known Subclasses:
EventDrivenPollingConsumer, ListPollingConsumer, ProcessorPollingConsumer

public abstract class PollingConsumerSupport<E extends Exchange>
extends ServiceSupport
implements PollingConsumer<E>

A useful base class for implementations of PollingConsumer

Version:
$Revision: 35332 $

Constructor Summary
PollingConsumerSupport(Endpoint<E> endpoint)
           
 
Method Summary
 Endpoint<E> getEndpoint()
           
 ExceptionHandler getExceptionHandler()
           
protected  void handleException(Throwable t)
          Handles the given exception using the getExceptionHandler()
 void setExceptionHandler(ExceptionHandler exceptionHandler)
           
 String toString()
           
 
Methods inherited from class org.apache.camel.impl.ServiceSupport
addChildService, doStart, doStop, getThreadName, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, nextThreadCounter, removeChildService, start, stop
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.apache.camel.PollingConsumer
receive, receive, receiveNoWait
 
Methods inherited from interface org.apache.camel.Service
start, stop
 

Constructor Detail

PollingConsumerSupport

public PollingConsumerSupport(Endpoint<E> endpoint)
Method Detail

toString

public String toString()
Overrides:
toString in class Object

getEndpoint

public Endpoint<E> getEndpoint()

getExceptionHandler

public ExceptionHandler getExceptionHandler()

setExceptionHandler

public void setExceptionHandler(ExceptionHandler exceptionHandler)

handleException

protected void handleException(Throwable t)
Handles the given exception using the getExceptionHandler()

Parameters:
t - the exception to handle


Copyright © 2009 IONA Open Source Community. All Rights Reserved.