diff options
| author | Paul Buetow <paul@buetow.org> | 2026-03-26 23:18:11 +0200 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-03-26 23:18:11 +0200 |
| commit | e76b434619e1ec034e161e0c644e5fad5ab14c79 (patch) | |
| tree | 174db947f131bdfc514518ebb01f66f378b73c5a /src/main/java/protocols/VSAbstractProtocol.java | |
| parent | ffdbcd5382394e0107b88aed0ae762538bcd6167 (diff) | |
Fix Raft follower timeout re-arming tests (0bac83d3-1322-4940-a9ee-58eb1e0d6245)
Diffstat (limited to 'src/main/java/protocols/VSAbstractProtocol.java')
| -rw-r--r-- | src/main/java/protocols/VSAbstractProtocol.java | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/main/java/protocols/VSAbstractProtocol.java b/src/main/java/protocols/VSAbstractProtocol.java index 505a6aa..1695c25 100644 --- a/src/main/java/protocols/VSAbstractProtocol.java +++ b/src/main/java/protocols/VSAbstractProtocol.java @@ -247,6 +247,15 @@ abstract public class VSAbstractProtocol extends VSAbstractEvent { } /** + * Checks whether the protocol currently runs in server context. + * + * @return true if the current context is server, otherwise false + */ + public final boolean currentContextIsServer() { + return currentContextIsServer; + } + + /** * Checks how the protocol will start * * @return true, if this protocol uses onServerStart instead of |
