/** * Returns the maximum size (in bytes) the inbox can take up. */ public int getStorageSpaceInbox() { return getIntParameter(PARAMETER_STORAGE_SPACE_INBOX, DEFAULT_STORAGE_SPACE_INBOX); }
@Override public void run() { shutDown(); } });
public static I2PBote getInstance() { if (instance == null) instance = new I2PBote(); return instance; }
/** * @see EmailChecker#getLastMailCheckTime() */ public Date getLastMailCheckTime() { return I2PBote.getInstance().getLastMailCheckTime(); }
/** * * @param messageIdString Must be a 44-character Base64-encoded string. */ public void setMessageID(String messageIdString) { this.messageId = new UniqueId(messageIdString); }
@Override public Void call() throws IOException, GeneralSecurityException, PasswordException { changePassword(oldPassword, newPassword, confirmNewPassword); return null; } });
@Override public Exception getConnectError() { return connectTask.getError(); }
/** * Returns the maximum number of email identities to retrieve new emails for at a time. */ public int getMaxConcurIdCheckMail() { return getIntParameter(PARAMETER_MAX_CONCURRENT_IDENTITIES_CHECK_MAIL, DEFAULT_MAX_CONCURRENT_IDENTITIES_CHECK_MAIL); }
/** * Returns the number of minutes the application should wait before * checking for mail again. This setting only has an effect if * automatic mail checking is disabled. * @see #isAutoMailCheckEnabled() */ public int getMailCheckInterval() { return getIntParameter(PARAMETER_MAIL_CHECK_INTERVAL, DEFAULT_MAIL_CHECK_INTERVAL); }
/** * Returns the wait time, in minutes, before processing the outbox folder again. * @see i2p.bote.service.OutboxProcessor */ public int getOutboxCheckInterval() { return getIntParameter(PARAMETER_OUTBOX_CHECK_INTERVAL, DEFAULT_OUTBOX_CHECK_INTERVAL); }
/** * Returns the wait time, in minutes, between checking the delivery status of sent emails. * @see i2p.bote.service.DeliveryChecker */ public int getDeliveryCheckInterval() { return getIntParameter(PARAMETER_DELIVERY_CHECK_INTERVAL, DEFAULT_DELIVERY_CHECK_INTERVAL); }
/** * Returns the maximum size (in bytes) all messages stored for relaying can take up. */ public int getStorageSpaceRelay() { return getIntParameter(PARAMETER_STORAGE_SPACE_RELAY, DEFAULT_STORAGE_SPACE_RELAY); }
/** * Returns the minimum amount of time in minutes that a Relay Request is delayed. */ public int getRelayMinDelay() { return getIntParameter(PARAMETER_RELAY_MIN_DELAY, DEFAULT_RELAY_MIN_DELAY); }
/** * Returns the number of minutes the password is kept in memory */ public int getPasswordCacheDuration() { return getIntParameter(PARAMETER_PASSWORD_CACHE_DURATION, DEFAULT_PASSWORD_CACHE_DURATION); }
/** * Returns the time (in milliseconds) after which an email is deleted from the outbox if it cannot be sent or relayed. */ public long getStorageTime() { return 24L * 3600 * 1000 * getIntParameter(PARAMETER_STORAGE_TIME, DEFAULT_STORAGE_TIME); }
/** * Returns the number of relay chains that should be used per Relay Request. */ public int getRelayRedundancy() { return getIntParameter(PARAMETER_RELAY_REDUNDANCY, DEFAULT_RELAY_REDUNDANCY); }
/** * Returns the number of relays that should be used when sending a DHT store request. * @return A non-negative number */ public int getNumStoreHops() { return getIntParameter(PARAMETER_NUM_STORE_HOPS, DEFAULT_NUM_STORE_HOPS); }
/** * Returns the number of minutes to wait before processing the relay packet folder again. */ public int getRelaySendPause() { return getIntParameter(PARAMETER_RELAY_SEND_PAUSE, DEFAULT_RELAY_SEND_PAUSE); }
/** * Returns the maximum amount of time in minutes that a Relay Request is delayed. */ public int getRelayMaxDelay() { return getIntParameter(PARAMETER_RELAY_MAX_DELAY, DEFAULT_RELAY_MAX_DELAY); }
/** * Returns the number of minutes to wait after checking for a new plugin version. */ public int getUpdateCheckInterval() { return getIntParameter(PARAMETER_UPDATE_CHECK_INTERVAL, DEFAULT_UPDATE_CHECK_INTERVAL); }