本文整理汇总了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.");
}
示例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())
);
}
示例3: getOrder
@Override
public int getOrder() {
return Ordered.HIGHEST_PRECEDENCE;
}
示例4: getOrder
@Override
public int getOrder() {
return Ordered.HIGHEST_PRECEDENCE;
}
示例5: getOrder
@Override
default int getOrder() {
return Ordered.HIGHEST_PRECEDENCE;
}
示例6: timeTraceInterceptor
@Bean
@Order(Ordered.HIGHEST_PRECEDENCE)
public TimeTraceInterceptor timeTraceInterceptor() {
return new TimeTraceInterceptor();
}
示例7: filterOrder
@Override
public int filterOrder() {
return Ordered.HIGHEST_PRECEDENCE;
}
示例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;
}