public class AnnounceSender extends java.lang.Object implements PrioRunnable, ByteCounter
| Constructor and Description |
|---|
AnnounceSender(double target,
OpennetManager om,
Node node,
AnnouncementCallback cb,
PeerNode onlyNode) |
AnnounceSender(double target,
short htl,
long uid,
PeerNode source,
OpennetManager om,
Node node,
long xferUID,
int noderefLength,
int paddedLength,
AnnouncementCallback cb) |
| Modifier and Type | Method and Description |
|---|---|
int |
getPriority() |
void |
receivedBytes(int x) |
void |
run() |
void |
sentBytes(int x)
Sent some bytes.
|
void |
sentPayload(int x)
Sent payload - only include the number of bytes of actual payload i.e.
|
public AnnounceSender(double target,
short htl,
long uid,
PeerNode source,
OpennetManager om,
Node node,
long xferUID,
int noderefLength,
int paddedLength,
AnnouncementCallback cb)
public AnnounceSender(double target,
OpennetManager om,
Node node,
AnnouncementCallback cb,
PeerNode onlyNode)
public void run()
run in interface java.lang.Runnablepublic void sentBytes(int x)
ByteCountersentBytes in interface ByteCounterpublic void receivedBytes(int x)
receivedBytes in interface ByteCounterpublic void sentPayload(int x)
ByteCountersentPayload in interface ByteCounterx - Number of bytes sentpublic int getPriority()
getPriority in interface PrioRunnable