All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.ingenico.connect.gateway.sdk.java.PooledConnection Maven / Gradle / Ivy

package com.ingenico.connect.gateway.sdk.java;

import java.util.concurrent.TimeUnit;

/**
 * Represents a pooled connection to the Ingenico ePayments platform server.
 * Instead of setting up a new HTTP connection for each request, this connection uses a pool of HTTP connections.
 * Thread-safe.
 */
public interface PooledConnection extends Connection {

	/**
	 * Closes all HTTP connections that have been idle for the specified time.
	 * This should also include all expired HTTP connections.
	 *
	 * @see #closeExpiredConnections()
	 */
	void closeIdleConnections(long idleTime, TimeUnit timeUnit);

	/**
	 * Closes all expired HTTP connections.
	 */
	void closeExpiredConnections();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy