本文整理汇总了Java中javax.batch.api.chunk.listener.SkipReadListener类的典型用法代码示例。如果您正苦于以下问题:Java SkipReadListener类的具体用法?Java SkipReadListener怎么用?Java SkipReadListener使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
SkipReadListener类属于javax.batch.api.chunk.listener包,在下文中一共展示了SkipReadListener类的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: handleExceptionRead
import javax.batch.api.chunk.listener.SkipReadListener; //导入依赖的package包/类
/**
* Handle exception from a read failure.
*/
public void handleExceptionRead(Exception e) {
if (isSkipLimitReached() || !isSkippable(e)) {
throw new BatchContainerRuntimeException(e);
}
// Skip it. Log it. Call the SkipListener.
++_skipCount;
if (_skipReadListener != null) {
for (final SkipReadListener skipReadListenerProxy : _skipReadListener) {
try {
skipReadListenerProxy.onSkipReadItem(e);
} catch (Exception e1) {
ExceptionConfig.wrapBatchException(e1);
}
}
}
}
开发者ID:apache,项目名称:incubator-batchee,代码行数:22,代码来源:SkipHandler.java
示例2: getSkipReadListeners
import javax.batch.api.chunk.listener.SkipReadListener; //导入依赖的package包/类
public List<SkipReadListenerProxy> getSkipReadListeners(Step step, InjectionReferences injectionRefs, StepContextImpl stepContext) {
List<ListenerInfo> stepListenerInfo = getStepListenerInfo(step, injectionRefs);
List<SkipReadListenerProxy> retVal = new ArrayList<SkipReadListenerProxy>();
for (ListenerInfo li : stepListenerInfo) {
if (li.isSkipReadListener()) {
SkipReadListenerProxy proxy = new SkipReadListenerProxy((SkipReadListener) li.getArtifact());
proxy.setStepContext(stepContext);
retVal.add(proxy);
}
}
return retVal;
}
开发者ID:WASdev,项目名称:standards.jsr352.jbatch,代码行数:16,代码来源:ListenerFactory.java
示例3: isSkipReadListener
import javax.batch.api.chunk.listener.SkipReadListener; //导入依赖的package包/类
boolean isSkipReadListener() {
return SkipReadListener.class.isAssignableFrom(listenerArtifactClass);
}
开发者ID:WASdev,项目名称:standards.jsr352.jbatch,代码行数:4,代码来源:ListenerFactory.java
示例4: addSkipReadListener
import javax.batch.api.chunk.listener.SkipReadListener; //导入依赖的package包/类
/**
* Add the user-defined SkipReadListeners.
*/
public void addSkipReadListener(List<SkipReadListener> skipReadListener) {
_skipReadListener = skipReadListener;
}
开发者ID:apache,项目名称:incubator-batchee,代码行数:7,代码来源:SkipHandler.java
示例5: SkipReadListenerProxy
import javax.batch.api.chunk.listener.SkipReadListener; //导入依赖的package包/类
SkipReadListenerProxy(SkipReadListener delegate) {
super(delegate);
}
开发者ID:WASdev,项目名称:standards.jsr352.jbatch,代码行数:5,代码来源:SkipReadListenerProxy.java
注:本文中的javax.batch.api.chunk.listener.SkipReadListener类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论