本文整理汇总了Java中org.springframework.core.Ordered.LOWEST_PRECEDENCE属性的典型用法代码示例。如果您正苦于以下问题:Java Ordered.LOWEST_PRECEDENCE属性的具体用法?Java Ordered.LOWEST_PRECEDENCE怎么用?Java Ordered.LOWEST_PRECEDENCE使用的例子?那么, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在类org.springframework.core.Ordered
的用法示例。
在下文中一共展示了Ordered.LOWEST_PRECEDENCE属性的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: handleConfigHasBeenLoaded
@Order(Ordered.LOWEST_PRECEDENCE)
@EventListener
void handleConfigHasBeenLoaded(final ConfigHasBeenLoadedEvent event) {
logger.debug("Send ConfigHasBeenLoadedEvent to clients.");
this.messagingTemplate.convertAndSend("/config", new ConfigHasBeenLoadedPayload(event));
}
示例2: getOrder
@Override
public int getOrder() {
if (this.beanFactory.isSingleton(this.aspectBeanName) &&
this.beanFactory.isTypeMatch(this.aspectBeanName, Ordered.class)) {
return ((Ordered) this.beanFactory.getBean(this.aspectBeanName)).getOrder();
}
return Ordered.LOWEST_PRECEDENCE;
}
示例3: handleConfigHasChanged
@Order(Ordered.LOWEST_PRECEDENCE)
@EventListener
void handleConfigHasChanged(final ConfigHasChangedEvent event) {
logger.debug("Send ConfigHasChangedEvent to clients.");
this.messagingTemplate.convertAndSend("/config", new ConfigHasChangedPayload(event));
}
示例4: getOrderForAspectClass
/**
* Check whether the aspect class carries an
* {@link org.springframework.core.annotation.Order} annotation,
* falling back to {@code Ordered.LOWEST_PRECEDENCE}.
* @see org.springframework.core.annotation.Order
*/
@Override
protected int getOrderForAspectClass(Class<?> aspectClass) {
Order order = AnnotationUtils.findAnnotation(aspectClass, Order.class);
if (order != null) {
return order.value();
}
return Ordered.LOWEST_PRECEDENCE;
}
示例5: handleSomethingHasFuckedUp
@Async
@Order(Ordered.LOWEST_PRECEDENCE)
@EventListener
void handleSomethingHasFuckedUp(final SomethingHasFuckedUpEvent event) {
// We caught an unrecoverable exception in a thread, we better stop right now.
logger.error("Event SomethingHasFuckedUpEvent caught.", event.getException());
// Stop the application
SpringApplication.exit(appContext, () -> 42);
}
示例6: handleTorrentFileDeleted
@Order(Ordered.LOWEST_PRECEDENCE)
@EventListener
void handleTorrentFileDeleted(final TorrentFileDeletedEvent event) {
logger.debug("Send TorrentFileDeletedPayload to clients.");
this.messagingTemplate.convertAndSend("/torrents", new TorrentFileDeletedPayload(event));
}
示例7: handleAnnouncerWillAnnounce
@Order(Ordered.LOWEST_PRECEDENCE)
@EventListener
void handleAnnouncerWillAnnounce(final AnnouncerWillAnnounceEvent event) {
logger.debug("Send AnnouncerWillAnnounceEvent to clients.");
this.messagingTemplate.convertAndSend("/announce", new AnnouncerWillAnnouncePayload(event));
}
示例8: handleClientFilesDiscovered
@Order(Ordered.LOWEST_PRECEDENCE)
@EventListener
void handleClientFilesDiscovered(final ClientFilesDiscoveredEvent event) {
logger.debug("Send ClientFilesDiscoveredEvent to clients.");
this.messagingTemplate.convertAndSend("/config", new ClientFilesDiscoveredPayload(event));
}
示例9: handleAnnounceHasStopped
@Order(Ordered.LOWEST_PRECEDENCE)
@EventListener
void handleAnnounceHasStopped(final AnnouncerHasStoppedEvent event) {
logger.debug("Send AnnouncerHasStoppedEvent to clients.");
this.messagingTemplate.convertAndSend("/announce", new AnnouncerHasStoppedPayload(event));
}
示例10: getOrder
@Override
public int getOrder() {
return Ordered.LOWEST_PRECEDENCE;
}
开发者ID:apache,项目名称:incubator-servicecomb-java-chassis,代码行数:4,代码来源:LastPropertyPlaceholderConfigurer.java
示例11: DefaultTicketDefinition
public DefaultTicketDefinition(final Class<? extends Ticket> implementationClass, final String prefix) {
this(implementationClass, prefix, Ordered.LOWEST_PRECEDENCE);
}
示例12: getPhase
@Override
public int getPhase() {
return Ordered.LOWEST_PRECEDENCE;
}
示例13: getOrder
@Override
public int getOrder() {
return Ordered.LOWEST_PRECEDENCE;
}
示例14: getOrder
@Override
public int getOrder() {
return Ordered.LOWEST_PRECEDENCE;
}
示例15: getOrder
@Override
public int getOrder() {
return Ordered.LOWEST_PRECEDENCE - 30000;
}