public class RouterTimestamper
extends net.i2p.time.Timestamper
| Modifier and Type | Field and Description |
|---|---|
static String |
PROP_CONCURRING_SERVERS |
static String |
PROP_DISABLED |
static String |
PROP_IP_COUNTRY |
static String |
PROP_QUERY_FREQUENCY |
static String |
PROP_SERVER_LIST |
| Constructor and Description |
|---|
RouterTimestamper(net.i2p.I2PAppContext ctx)
Does not start.
|
RouterTimestamper(net.i2p.I2PAppContext ctx,
net.i2p.time.Timestamper.UpdateListener lsnr)
Does not start.
|
RouterTimestamper(net.i2p.I2PAppContext ctx,
net.i2p.time.Timestamper.UpdateListener lsnr,
boolean daemon)
Does not start.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addListener(net.i2p.time.Timestamper.UpdateListener lsnr) |
boolean |
getIsDisabled() |
net.i2p.time.Timestamper.UpdateListener |
getListener(int index) |
int |
getListenerCount() |
int |
getQueryFrequencyMs() |
String |
getServer(int index) |
int |
getServerCount() |
void |
removeListener(net.i2p.time.Timestamper.UpdateListener lsnr) |
void |
run() |
void |
startTimestamper() |
void |
timestampNow()
Update the time immediately.
|
void |
waitForInitialization() |
public static final String PROP_QUERY_FREQUENCY
public static final String PROP_SERVER_LIST
public static final String PROP_DISABLED
public static final String PROP_CONCURRING_SERVERS
public static final String PROP_IP_COUNTRY
public RouterTimestamper(net.i2p.I2PAppContext ctx)
public RouterTimestamper(net.i2p.I2PAppContext ctx,
net.i2p.time.Timestamper.UpdateListener lsnr)
public RouterTimestamper(net.i2p.I2PAppContext ctx,
net.i2p.time.Timestamper.UpdateListener lsnr,
boolean daemon)
public int getServerCount()
public String getServer(int index)
public int getQueryFrequencyMs()
public boolean getIsDisabled()
public void addListener(net.i2p.time.Timestamper.UpdateListener lsnr)
public void removeListener(net.i2p.time.Timestamper.UpdateListener lsnr)
public int getListenerCount()
public net.i2p.time.Timestamper.UpdateListener getListener(int index)
public void startTimestamper()
public void waitForInitialization()
waitForInitialization in class net.i2p.time.Timestamperpublic void timestampNow()
timestampNow in class net.i2p.time.Timestamper