@@ -0,0 +1,1389 @@
+/*%0A * Copyright (c) 2010-2019. Axon Framework%0A *%0A * Licensed under the Apache License, Version 2.0 (the %22License%22);%0A * you may not use this file except in compliance with the License.%0A * You may obtain a copy of the License at%0A *%0A *    http://www.apache.org/licenses/LICENSE-2.0%0A *%0A * Unless required by applicable law or agreed to in writing, software%0A * distributed under the License is distributed on an %22AS IS%22 BASIS,%0A * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.%0A * See the License for the specific language governing permissions and%0A * limitations under the License.%0A */%0A%0Apackage org.axonframework.messaging;%0A%0A/**%0A * A contract towards being a distributed message bus implementation. The generic %7B@code T%7D defines the type of message%0A * bus which is distributed.%0A *%0A * @param %3CMessageBus%3E the message bus which is distributed%0A * @author Steven van Beelen%0A * @since 4.2.2%0A */%0Apublic interface Distributed%3CMessageBus%3E %7B%0A%0A    /**%0A     * Return the message bus of type %7B@code MessageBus%7D which is regarded as the local segment for this implementation.%0A     * Would return the message bus used to dispatch and handle messages in a local environment to bridge the gap in a%0A     * distributed set up.%0A     *%0A     * @return a %7B@code MessageBus%7D which is the local segment for this distributed message bus implementation%0A     */%0A    MessageBus localSegment();%0A%7D%0A

Introduce a Distributed interface