本文整理匯總了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;
}