当前位置: 首页>>代码示例>>Java>>正文


Java Ordered.HIGHEST_PRECEDENCE属性代码示例

本文整理汇总了Java中org.springframework.core.Ordered.HIGHEST_PRECEDENCE属性的典型用法代码示例。如果您正苦于以下问题:Java Ordered.HIGHEST_PRECEDENCE属性的具体用法?Java Ordered.HIGHEST_PRECEDENCE怎么用?Java Ordered.HIGHEST_PRECEDENCE使用的例子?那么, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在org.springframework.core.Ordered的用法示例。


在下文中一共展示了Ordered.HIGHEST_PRECEDENCE属性的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: handleNoMoreLeechers

@Async
@Order(Ordered.HIGHEST_PRECEDENCE)
@EventListener
void handleNoMoreLeechers(final NoMoreLeechersEvent event) throws IOException {
    logger.debug("Event NoMoreLeechersEvent caught.");
    //logger.warn("0 peers are currently leeching, moving torrent to archived and restarting seed.");
}
 
开发者ID:anthonyraymond,项目名称:joal,代码行数:7,代码来源:CoreEventListener.java

示例2: handleAnnounceRequesting

@Async
@Order(Ordered.HIGHEST_PRECEDENCE)
@EventListener
void handleAnnounceRequesting(final AnnouncerWillAnnounceEvent event) {
    final RequestEvent announceEvent = event.getEvent();
    final TorrentWithStats torrent = event.getTorrent();
    logger.info(
            "Announced {} for torrent {} Up={}/Down={}/Left={}",
            announceEvent == RequestEvent.NONE ? "" : announceEvent,
            torrent.getTorrent().getName(),
            FileUtils.byteCountToDisplaySize(torrent.getUploaded()),
            FileUtils.byteCountToDisplaySize(torrent.getDownloaded()),
            FileUtils.byteCountToDisplaySize(torrent.getLeft())
    );
}
 
开发者ID:anthonyraymond,项目名称:joal,代码行数:15,代码来源:CoreEventListener.java

示例3: getOrder

@Override
public int getOrder() {
    return Ordered.HIGHEST_PRECEDENCE;
}
 
开发者ID:yu199195,项目名称:happylifeplat-transaction,代码行数:4,代码来源:DubboTxTransactionAspect.java

示例4: getOrder

@Override
public int getOrder() {
	return Ordered.HIGHEST_PRECEDENCE;
}
 
开发者ID:lamsfoundation,项目名称:lams,代码行数:4,代码来源:AsyncExecutionInterceptor.java

示例5: getOrder

@Override
default int getOrder() {
    return Ordered.HIGHEST_PRECEDENCE;
}
 
开发者ID:mrluo735,项目名称:cas-5.1.0,代码行数:4,代码来源:RegisteredServiceAttributeFilter.java

示例6: timeTraceInterceptor

@Bean
@Order(Ordered.HIGHEST_PRECEDENCE)
public TimeTraceInterceptor timeTraceInterceptor() {
    return new TimeTraceInterceptor();
}
 
开发者ID:superkoh,项目名称:k-framework,代码行数:5,代码来源:MybatisAutoConfiguration.java

示例7: filterOrder

@Override
public int filterOrder() {
  return Ordered.HIGHEST_PRECEDENCE;
}
 
开发者ID:drm317,项目名称:cloud-native-reference,代码行数:4,代码来源:ThrottlingPreFilter.java

示例8: getOrder

@Override
public int getOrder() {
	return Ordered.HIGHEST_PRECEDENCE + 4;
}
 
开发者ID:pivotal-cf,项目名称:spring-cloud-vault-connector,代码行数:4,代码来源:ServiceInfoPropertySourceAdapter.java

示例9: getOrder

@Override
public int getOrder() {
	return Ordered.HIGHEST_PRECEDENCE - 10;
}
 
开发者ID:olivergierke,项目名称:spring-domain-events,代码行数:4,代码来源:CompletionRegisteringBeanPostProcessor.java

示例10: getOrder

public int getOrder()
{
    // This has to run before any other post-processor
    return Ordered.HIGHEST_PRECEDENCE;
}
 
开发者ID:Alfresco,项目名称:alfresco-repository,代码行数:5,代码来源:LegacyConfigPostProcessor.java


注:本文中的org.springframework.core.Ordered.HIGHEST_PRECEDENCE属性示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。