Interface PooledConnection

All Superinterfaces:
AutoCloseable, Closeable, Connection, LoggingCapable, ObfuscationCapable
All Known Implementing Classes:
DefaultConnection

public interface PooledConnection extends Connection
Represents a pooled connection to the Online Payments platform server. Instead of setting up a new HTTP connection for each request, this connection uses a pool of HTTP connections. Thread-safe.
  • Method Details

    • closeIdleConnections

      void closeIdleConnections(long idleTime, TimeUnit timeUnit)
      Closes all HTTP connections that have been idle for the specified time. This should also include all expired HTTP connections.
      See Also:
    • closeExpiredConnections

      void closeExpiredConnections()
      Closes all expired HTTP connections.