MCPcopy Create free account
hub / github.com/belaban/JGroups / checkAndSwitchTop

Method checkAndSwitchTop

src/org/jgroups/stack/ProtocolStack.java:552–557  ·  view source on GitHub ↗
(Protocol oldTop, Protocol newTop)

Source from the content-addressed store, hash-verified

550 }
551
552 private void checkAndSwitchTop(Protocol oldTop, Protocol newTop){
553 if(oldTop == top_prot) {
554 top_prot = newTop;
555 top_prot.setUpProtocol(this);
556 }
557 }
558
559 public void insertProtocol(Protocol prot, Position position, Class<? extends Protocol> neighbor_prot) throws Exception {
560 if(neighbor_prot == null) throw new IllegalArgumentException("neighbor_prot is null");

Callers 2

insertProtocolInStackMethod · 0.95
removeProtocolMethod · 0.95

Calls 1

setUpProtocolMethod · 0.80

Tested by

no test coverage detected