MCPcopy Create free account
hub / github.com/annmuor/jnode / add

Method add

jnode-core/src/jnode/main/threads/PollQueue.java:50–60  ·  view source on GitHub ↗
(Link link)

Source from the content-addressed store, hash-verified

48 private LinkedList<Link> queue = new LinkedList<Link>();
49
50 public void add(Link link) {
51 if (link.getProtocolAddress() != null
52 && !link.getProtocolAddress().isEmpty()
53 && !"-".equals(link.getProtocolAddress())) {
54 synchronized (queue) {
55 if (!queue.contains(link) && !isActive(link)) {
56 queue.addLast(link);
57 }
58 }
59 }
60 }
61
62 public synchronized void poll() {
63 for (int i = 0; i < queue.size(); i++) {

Callers 15

loadMethod · 0.45
listEchoareasMethod · 0.45
listLinksMethod · 0.45
listRoutingMethod · 0.45
listSubscriptionMethod · 0.45
testFindPosMethod · 0.45
SystemInfoMethod · 0.45
runMethod · 0.45
StatPosterMethod · 0.45
createIndexMethod · 0.45
updateFromVersionMethod · 0.45
fillConfigListMethod · 0.45

Calls 4

isActiveMethod · 0.95
getProtocolAddressMethod · 0.80
isEmptyMethod · 0.80
equalsMethod · 0.45

Tested by 1

testFindPosMethod · 0.36