2014-01-06 19:19:17 +00:00
|
|
|
#ifndef __SESSION_POOL_PROPERTIES_HPP
|
|
|
|
#define __SESSION_POOL_PROPERTIES_HPP
|
|
|
|
|
|
|
|
#include "session/SessionProperties.hpp"
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Configure the behaviour of a SessionPool. {@link
|
2014-01-24 20:49:09 +00:00
|
|
|
* mop.bizsregistry.jtoolkit2.session.Session}s in the pool are configured from
|
|
|
|
* the {@link mop.bizsregistry.jtoolkit2.session.SessionProperties} extended by
|
2014-01-06 19:19:17 +00:00
|
|
|
* this.
|
|
|
|
*/
|
|
|
|
class SessionPoolProperties : public SessionProperties
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
/**
|
|
|
|
* Get the maximum number of sessions allowed in the pool.
|
|
|
|
*/
|
|
|
|
virtual int getMaximumPoolSize() const = 0;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Get the configured time interval (in milliseconds) after which the EPP
|
|
|
|
* server will close idle connections.
|
|
|
|
*/
|
|
|
|
virtual long getServerTimeout() const = 0;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Get the session idle time (in milliseconds) after which the keep-alive
|
|
|
|
* feature will allow sessions in the pool to be dropped (will no longer
|
|
|
|
* poll).
|
|
|
|
*/
|
|
|
|
virtual long getClientTimeout() const = 0;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // __SESSION_POOL_PROPERTIES_HPP
|
|
|
|
|