本文整理汇总了Java中javax.resource.spi.BootstrapContext.getWorkManager方法的典型用法代码示例。如果您正苦于以下问题:Java BootstrapContext.getWorkManager方法的具体用法?Java BootstrapContext.getWorkManager怎么用?Java BootstrapContext.getWorkManager使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类javax.resource.spi.BootstrapContext
的用法示例。
在下文中一共展示了BootstrapContext.getWorkManager方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: start
import javax.resource.spi.BootstrapContext; //导入方法依赖的package包/类
@Override
public void start(BootstrapContext ctx) throws ResourceAdapterInternalException {
log.debug("");
workManager = ctx.getWorkManager();
xaTerminator = ctx.getXATerminator();
try {
timer = ctx.createTimer();
perMinuteTimerTask = new PerMinuteTimerTask();
perMinuteTimerTask.init();
timer.schedule(perMinuteTimerTask, perMinuteTimerTask.getDelay(), perMinuteTimerTask.getPeriod());
} catch (UnavailableException e) {
log.warn("", e);
//throw new ResourceAdapterInternalException(e);
}
//bind();
log.debug("workManager={}, xaTerminator={}, timer={}", workManager, xaTerminator, timer);
}
示例2: start
import javax.resource.spi.BootstrapContext; //导入方法依赖的package包/类
@Override
public void start(BootstrapContext ctx) throws ResourceAdapterInternalException {
log.info("[TrafficResourceAdapter] start()");
/* Get the work manager from the container to submit tasks to
* be executed in container-managed threads */
workManager = ctx.getWorkManager();
}
示例3: start
import javax.resource.spi.BootstrapContext; //导入方法依赖的package包/类
/**
* {@inheritDoc}
*/
public void start(BootstrapContext ctx)
throws ResourceAdapterInternalException
{
this.bc = (CloneableBootstrapContext) ctx;
this.workManager = ctx.getWorkManager();
}
示例4: setBootstrapContext
import javax.resource.spi.BootstrapContext; //导入方法依赖的package包/类
/**
* Specify the JCA BootstrapContext that contains the
* WorkManager to delegate to.
*/
@Override
public void setBootstrapContext(BootstrapContext bootstrapContext) {
Assert.notNull(bootstrapContext, "BootstrapContext must not be null");
this.workManager = bootstrapContext.getWorkManager();
}
示例5: setBootstrapContext
import javax.resource.spi.BootstrapContext; //导入方法依赖的package包/类
/**
* Specify the JCA BootstrapContext that contains the
* WorkManager to delegate to.
*/
public void setBootstrapContext(BootstrapContext bootstrapContext) {
Assert.notNull(bootstrapContext, "BootstrapContext must not be null");
this.workManager = bootstrapContext.getWorkManager();
}
示例6: start
import javax.resource.spi.BootstrapContext; //导入方法依赖的package包/类
/**
* @see javax.resource.spi.ResourceAdapter#start(javax.resource.spi.BootstrapContext)
*/
@Override
public void start(BootstrapContext bootstrapContext) throws ResourceAdapterInternalException {
this.logger.info("Starting kismet resource adapter");
this.workManager = bootstrapContext.getWorkManager();
}
示例7: start
import javax.resource.spi.BootstrapContext; //导入方法依赖的package包/类
/**
* This is called when a resource adapter instance is bootstrapped.
*
* @param ctx
* A bootstrap context containing references
* @throws ResourceAdapterInternalException
* indicates bootstrap failure.
*/
public void start(BootstrapContext ctx)
throws ResourceAdapterInternalException {
log.finest("sets up configuration.");
this.workManager = ctx.getWorkManager();
}
示例8: start
import javax.resource.spi.BootstrapContext; //导入方法依赖的package包/类
/**
* This is called when a resource adapter instance is bootstrapped.
*
* @param ctx A bootstrap context containing references
* @throws ResourceAdapterInternalException indicates bootstrap failure.
*/
public void start(BootstrapContext ctx)
throws ResourceAdapterInternalException
{
this.workManager = ctx.getWorkManager();
}