if (protocol == null) // in case connection was closed return; if (System.currentTimeMillis() - protocol.getTimestamp() > 1000) { waitIfIdle(); if (protocol != null) try { p = ((IMAPStore)store).getFolderStoreProtocol(); if (System.currentTimeMillis() - p.getTimestamp() > 1000) p.noop(); } finally {
if (protocol == null) // in case connection was closed return; if (System.currentTimeMillis() - protocol.getTimestamp() > 1000) { waitIfIdle(); if (protocol != null) try { p = ((IMAPStore)store).getFolderStoreProtocol(); if (System.currentTimeMillis() - p.getTimestamp() > 1000) p.noop(); } finally {
if (pool.logger.isLoggable(Level.FINE)) pool.logger.fine("protocol last used: " + (System.currentTimeMillis() - p.getTimestamp())); if (System.currentTimeMillis() - p.getTimestamp() > pool.clientTimeoutInterval) {
if (pool.logger.isLoggable(Level.FINE)) pool.logger.fine("protocol last used: " + (System.currentTimeMillis() - p.getTimestamp())); if (System.currentTimeMillis() - p.getTimestamp() > pool.clientTimeoutInterval) {
long lastUsed = System.currentTimeMillis() - p.getTimestamp(); if (lastUsed > pool.serverTimeoutInterval) { try {
long lastUsed = System.currentTimeMillis() - p.getTimestamp(); if (lastUsed > pool.serverTimeoutInterval) { try {
if (pool.debug) { out.println("DEBUG: protocol last used: " + (System.currentTimeMillis() - p.getTimestamp())); if (System.currentTimeMillis() - p.getTimestamp() > pool.clientTimeoutInterval) {
if (pool.debug) { out.println("DEBUG: protocol last used: " + (System.currentTimeMillis() - p.getTimestamp())); if (System.currentTimeMillis() - p.getTimestamp() > pool.clientTimeoutInterval) {
/** * Issue a noop command for the connection if the connection has not been * used in more than a second. If <code>keepStoreAlive</code> is true, * also issue a noop over the store's connection. * * ASSERT: This method must be called only when holding the * messageCacheLock */ protected void keepConnectionAlive(boolean keepStoreAlive) throws ProtocolException { if (System.currentTimeMillis() - protocol.getTimestamp() > 1000) { waitIfIdle(); if (protocol != null) protocol.noop(); } if (keepStoreAlive && ((IMAPStore)store).hasSeparateStoreConnection()) { IMAPProtocol p = null; try { p = ((IMAPStore)store).getFolderStoreProtocol(); if (System.currentTimeMillis() - p.getTimestamp() > 1000) p.noop(); } finally { ((IMAPStore)store).releaseFolderStoreProtocol(p); } } }
if (protocol == null) // in case connection was closed return; if (System.currentTimeMillis() - protocol.getTimestamp() > 1000) { waitIfIdle(); if (protocol != null) try { p = ((IMAPStore)store).getFolderStoreProtocol(); if (System.currentTimeMillis() - p.getTimestamp() > 1000) p.noop(); } finally {
if (protocol == null) // in case connection was closed return; if (System.currentTimeMillis() - protocol.getTimestamp() > 1000) { waitIfIdle(); if (protocol != null) try { p = ((IMAPStore)store).getFolderStoreProtocol(); if (System.currentTimeMillis() - p.getTimestamp() > 1000) p.noop(); } finally {
if (pool.logger.isLoggable(Level.FINE)) pool.logger.fine("protocol last used: " + (System.currentTimeMillis() - p.getTimestamp())); if (System.currentTimeMillis() - p.getTimestamp() > pool.clientTimeoutInterval) {
if (protocol == null) // in case connection was closed return; if (System.currentTimeMillis() - protocol.getTimestamp() > 1000) { waitIfIdle(); if (protocol != null) try { p = ((IMAPStore)store).getFolderStoreProtocol(); if (System.currentTimeMillis() - p.getTimestamp() > 1000) p.noop(); } finally {
if (pool.logger.isLoggable(Level.FINE)) pool.logger.fine("protocol last used: " + (System.currentTimeMillis() - p.getTimestamp())); if (System.currentTimeMillis() - p.getTimestamp() > pool.clientTimeoutInterval) {
/** * Issue a noop command for the connection if the connection has not been * used in more than a second. If <code>keepStoreAlive</code> is true, * also issue a noop over the store's connection. * * ASSERT: This method must be called only when holding the * messageCacheLock */ private void keepConnectionAlive(boolean keepStoreAlive) throws ProtocolException { if (System.currentTimeMillis() - protocol.getTimestamp() > 1000) { waitIfIdle(); protocol.noop(); } if (keepStoreAlive && ((IMAPStore)store).hasSeparateStoreConnection()) { IMAPProtocol p = null; try { p = ((IMAPStore)store).getStoreProtocol(); if (System.currentTimeMillis() - p.getTimestamp() > 1000) p.noop(); } finally { ((IMAPStore)store).releaseStoreProtocol(p); } } }
if (protocol == null) // in case connection was closed return; if (System.currentTimeMillis() - protocol.getTimestamp() > 1000) { waitIfIdle(); if (protocol != null) try { p = ((IMAPStore)store).getFolderStoreProtocol(); if (System.currentTimeMillis() - p.getTimestamp() > 1000) p.noop(); } finally {
if (pool.logger.isLoggable(Level.FINE)) pool.logger.fine("protocol last used: " + (System.currentTimeMillis() - p.getTimestamp())); if (System.currentTimeMillis() - p.getTimestamp() > pool.clientTimeoutInterval) {
if (pool.logger.isLoggable(Level.FINE)) pool.logger.fine("protocol last used: " + (System.currentTimeMillis() - p.getTimestamp())); if (System.currentTimeMillis() - p.getTimestamp() > pool.clientTimeoutInterval) {
long lastUsed = System.currentTimeMillis() - p.getTimestamp(); if (lastUsed > pool.serverTimeoutInterval) { try {
long lastUsed = System.currentTimeMillis() - p.getTimestamp(); if (lastUsed > pool.serverTimeoutInterval) { try {