Package com.mongodb.internal.session
Class ServerSessionPool
- java.lang.Object
-
- com.mongodb.internal.session.ServerSessionPool
-
public class ServerSessionPool extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description ServerSessionPool(Cluster cluster)
ServerSessionPool(Cluster cluster, com.mongodb.internal.session.ServerSessionPool.Clock clock)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
ServerSession
get()
int
getInUseCount()
void
release(ServerSession serverSession)
-
-
-
Method Detail
-
get
public ServerSession get()
-
release
public void release(ServerSession serverSession)
-
close
public void close()
-
getInUseCount
public int getInUseCount()
-
-