Skip to content

Commit

Permalink
ns
Browse files Browse the repository at this point in the history
  • Loading branch information
belaban committed Nov 25, 2024
1 parent 3434814 commit dffe986
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions src/org/jgroups/util/Util.java
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,23 @@ public static Protocol[] getTestStack(Protocol... additional_protocols) {
return tmp;
}

public static Protocol[] getTestStackNew(Protocol... additional_protocols) {
Protocol[] protocols={
new SHARED_LOOPBACK(),
new SHARED_LOOPBACK_PING(),
new NAKACK4(),
new UNICAST4(),
new STABLE(),
new GMS().setJoinTimeout(500),
new FRAG2().setFragSize(8000)
};

if(additional_protocols == null)
return protocols;
Protocol[] tmp=Arrays.copyOf(protocols,protocols.length + additional_protocols.length);
System.arraycopy(additional_protocols, 0, tmp, protocols.length, additional_protocols.length);
return tmp;
}

/**
* Blocks until all channels have the same view
Expand Down

0 comments on commit dffe986

Please sign in to comment.