Code example for TimeUnit

Methods: toMillis

0
            throw new IllegalArgumentException("Time unit must not be null.");
        } 
 
        poolLock.lock();
        try { 
            idleConnHandler.closeIdleConnections(tunit.toMillis(idletime));
        } finally { 
            poolLock.unlock();
        } 
    } 
     
    public void closeExpiredConnections() { 
        poolLock.lock();
        try { 
            idleConnHandler.closeExpiredConnections();
        } finally { 
            poolLock.unlock();
        } 
    }