|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.camel.util.EndpointHelper
public final class EndpointHelper
Some helper methods for working with Endpoint
instances
Method Summary | |
---|---|
static void |
pollEndpoint(Endpoint endpoint,
Processor processor)
Creates a PollingConsumer and polls all pending messages on the
endpoint and invokes the given Processor to process each
Exchange and then closes down the consumer and throws any
exceptions thrown. |
static void |
pollEndpoint(Endpoint endpoint,
Processor processor,
long timeout)
Creates a PollingConsumer and polls all pending messages on the endpoint
and invokes the given Processor to process each Exchange and then closes
down the consumer and throws any exceptions thrown. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static void pollEndpoint(Endpoint endpoint, Processor processor, long timeout) throws Exception
PollingConsumer
and polls all pending messages on the endpoint
and invokes the given Processor
to process each Exchange
and then closes
down the consumer and throws any exceptions thrown.
Exception
public static void pollEndpoint(Endpoint endpoint, Processor processor) throws Exception
PollingConsumer
and polls all pending messages on the
endpoint and invokes the given Processor
to process each
Exchange
and then closes down the consumer and throws any
exceptions thrown.
Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |