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.Runnable
public void sentBytes(int x)
ByteCounter
sentBytes
in interface ByteCounter
public void receivedBytes(int x)
receivedBytes
in interface ByteCounter
public void sentPayload(int x)
ByteCounter
sentPayload
in interface ByteCounter
x
- Number of bytes sentpublic int getPriority()
getPriority
in interface PrioRunnable