Package com.onlinepayments.communication
Interface PooledConnection
- All Superinterfaces:
AutoCloseable,Closeable,Connection,LoggingCapable,ObfuscationCapable
- All Known Implementing Classes:
DefaultConnection
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 Summary
Modifier and TypeMethodDescriptionvoidCloses all expired HTTP connections.voidcloseIdleConnections(long idleTime, TimeUnit timeUnit) Closes all HTTP connections that have been idle for the specified time.Methods inherited from interface com.onlinepayments.communication.Connection
close, delete, get, post, post, put, putMethods inherited from interface com.onlinepayments.logging.LoggingCapable
disableLogging, enableLoggingMethods inherited from interface com.onlinepayments.logging.ObfuscationCapable
setBodyObfuscator, setHeaderObfuscator
-
Method Details
-
closeIdleConnections
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.
-