當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。