diff options
Diffstat (limited to 'subprojects/viatra-runtime-rete/src/main/java/tools/refinery/viatra/runtime/rete/network/mailbox/FallThroughCapableMailbox.java')
-rw-r--r-- | subprojects/viatra-runtime-rete/src/main/java/tools/refinery/viatra/runtime/rete/network/mailbox/FallThroughCapableMailbox.java | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/subprojects/viatra-runtime-rete/src/main/java/tools/refinery/viatra/runtime/rete/network/mailbox/FallThroughCapableMailbox.java b/subprojects/viatra-runtime-rete/src/main/java/tools/refinery/viatra/runtime/rete/network/mailbox/FallThroughCapableMailbox.java new file mode 100644 index 00000000..8797e254 --- /dev/null +++ b/subprojects/viatra-runtime-rete/src/main/java/tools/refinery/viatra/runtime/rete/network/mailbox/FallThroughCapableMailbox.java | |||
@@ -0,0 +1,30 @@ | |||
1 | /******************************************************************************* | ||
2 | * Copyright (c) 2010-2019, Tamas Szabo, Istvan Rath and Daniel Varro | ||
3 | * This program and the accompanying materials are made available under the | ||
4 | * terms of the Eclipse Public License v. 2.0 which is available at | ||
5 | * http://www.eclipse.org/legal/epl-v20.html. | ||
6 | * | ||
7 | * SPDX-License-Identifier: EPL-2.0 | ||
8 | *******************************************************************************/ | ||
9 | package tools.refinery.viatra.runtime.rete.network.mailbox; | ||
10 | |||
11 | import tools.refinery.viatra.runtime.rete.network.Receiver; | ||
12 | import tools.refinery.viatra.runtime.rete.network.communication.CommunicationTracker; | ||
13 | |||
14 | /** | ||
15 | * A fall through capable mailbox can directly call the update method of its {@link Receiver} instead of using the | ||
16 | * standard post-deliver mailbox semantics. If the fall through flag is set to true, the mailbox uses direct delivery, | ||
17 | * otherwise it operates in the original behavior. The fall through operation is preferable whenever applicable because | ||
18 | * it improves performance. The fall through flag is controlled by the {@link CommunicationTracker} based on the | ||
19 | * receiver node type and network topology. | ||
20 | * | ||
21 | * @author Tamas Szabo | ||
22 | * @since 2.2 | ||
23 | */ | ||
24 | public interface FallThroughCapableMailbox extends Mailbox { | ||
25 | |||
26 | public boolean isFallThrough(); | ||
27 | |||
28 | public void setFallThrough(final boolean fallThrough); | ||
29 | |||
30 | } | ||