📄 routingnotification.java
字号:
/* * $Id: RoutingNotification.java 11967 2008-06-05 20:32:19Z dfeist $ * -------------------------------------------------------------------------------------- * Copyright (c) MuleSource, Inc. All rights reserved. http://www.mulesource.com * * The software in this package is published under the terms of the CPAL v1.0 * license, a copy of which has been included with this distribution in the * LICENSE.txt file. */package org.mule.context.notification;import org.mule.api.MuleMessage;import org.mule.api.context.notification.ServerNotification;/** * Is fired by routers. Currently only Async-Reply routers use this when an event is received for an * event group that has already been processed. */public class RoutingNotification extends ServerNotification{ /** * Serial version */ private static final long serialVersionUID = -6455441938378523145L; public static final int MISSED_ASYNC_REPLY = ROUTING_EVENT_ACTION_START_RANGE + 1; public static final int ASYNC_REPLY_TIMEOUT = ROUTING_EVENT_ACTION_START_RANGE + 2; public static final int CORRELATION_TIMEOUT = ROUTING_EVENT_ACTION_START_RANGE + 3; static { registerAction("missed async reply", MISSED_ASYNC_REPLY); registerAction("async reply timeout", ASYNC_REPLY_TIMEOUT); registerAction("correlation timeout", CORRELATION_TIMEOUT); } public RoutingNotification(MuleMessage resource, String identifier, int action) { super(resource, action); resourceIdentifier = identifier; } protected String getPayloadToString() { try { return ((MuleMessage)source).getPayloadAsString(); } catch (Exception e) { return source.toString(); } } public String getType() { if (action == MISSED_ASYNC_REPLY) { return TYPE_WARNING; } else if (action == ASYNC_REPLY_TIMEOUT) { return TYPE_WARNING; } else { return TYPE_INFO; } }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -