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

Method isActive

jnode-core/src/jnode/main/threads/PollQueue.java:92–103  ·  view source on GitHub ↗
(FtnAddress addr)

Source from the content-addressed store, hash-verified

90 }
91
92 public boolean isActive(FtnAddress addr) {
93 if (addr != null) {
94 long now = new Date().getTime();
95 Long time = pollMap.get(addr.toString());
96 if (time != null) {
97 if (now - time < 600000) {
98 return true;
99 }
100 }
101 }
102 return false;
103 }
104
105 public boolean isActive(Link link) {
106 String addr = link.getLinkAddress();

Callers 2

addMethod · 0.95
m_adrMethod · 0.80

Calls 3

getLinkAddressMethod · 0.80
getMethod · 0.45
toStringMethod · 0.45

Tested by

no test coverage detected