public class StringConsumerExceptionHandler extends Object implements ExceptionHandler<StringEvent>
| 构造器和说明 |
|---|
StringConsumerExceptionHandler() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
handleEventException(Throwable ex,
long sequence,
StringEvent event)
Strategy for handling uncaught exceptions when processing an event.
|
void |
handleOnShutdownException(Throwable ex)
Callback to notify of an exception during
LifecycleAware.onShutdown() |
void |
handleOnStartException(Throwable ex)
Callback to notify of an exception during
LifecycleAware.onStart() |
public void handleEventException(Throwable ex, long sequence, StringEvent event)
ExceptionHandlerStrategy for handling uncaught exceptions when processing an event.
If the strategy wishes to terminate further processing by the BatchEventProcessor
then it should throw a RuntimeException.
handleEventException 在接口中 ExceptionHandler<StringEvent>ex - the exception that propagated from the EventHandler.sequence - of the event which cause the exception.event - being processed when the exception occurred. This can be null.public void handleOnStartException(Throwable ex)
ExceptionHandlerLifecycleAware.onStart()handleOnStartException 在接口中 ExceptionHandler<StringEvent>ex - throw during the starting process.public void handleOnShutdownException(Throwable ex)
ExceptionHandlerLifecycleAware.onShutdown()handleOnShutdownException 在接口中 ExceptionHandler<StringEvent>ex - throw during the shutdown process.Copyright © 2018 Pivotal Software, Inc.. All rights reserved.