net.i2p.time
public class Timestamper extends Object implements Runnable
Modifier and Type | Class and Description |
---|---|
static interface |
Timestamper.UpdateListener
Interface to receive update notifications for when we query the time
Only used by Clock.
|
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 |
---|
Timestamper(I2PAppContext ctx) |
Timestamper(I2PAppContext ctx,
Timestamper.UpdateListener lsnr) |
Timestamper(I2PAppContext ctx,
Timestamper.UpdateListener lsnr,
boolean daemon) |
Modifier and Type | Method and Description |
---|---|
void |
addListener(Timestamper.UpdateListener lsnr) |
boolean |
getIsDisabled() |
Timestamper.UpdateListener |
getListener(int index) |
int |
getListenerCount() |
int |
getQueryFrequencyMs() |
String |
getServer(int index) |
int |
getServerCount() |
static void |
main(String[] args) |
void |
removeListener(Timestamper.UpdateListener lsnr) |
void |
run() |
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 Timestamper(I2PAppContext ctx)
public Timestamper(I2PAppContext ctx, Timestamper.UpdateListener lsnr)
public Timestamper(I2PAppContext ctx, Timestamper.UpdateListener lsnr, boolean daemon)
public int getServerCount()
public String getServer(int index)
public int getQueryFrequencyMs()
public boolean getIsDisabled()
public void addListener(Timestamper.UpdateListener lsnr)
public void removeListener(Timestamper.UpdateListener lsnr)
public int getListenerCount()
public Timestamper.UpdateListener getListener(int index)
public void waitForInitialization()
public static void main(String[] args)