public class SessionPool extends Object
Constructor and Description |
---|
SessionPool(int min,
int max,
long checkPeriod,
long maxIdleTime) |
Modifier and Type | Method and Description |
---|---|
PooledSession |
addSession(PoolableSession session) |
void |
close() |
PooledSession |
getSession(Credentials credentials) |
void |
returnSession(PooledSession session) |
public SessionPool(int min, int max, long checkPeriod, long maxIdleTime)
public PooledSession addSession(PoolableSession session)
public PooledSession getSession(Credentials credentials)
public void returnSession(PooledSession session)
public void close()
Copyright © 2020. All rights reserved.