@Deprecated public class DBPortPool extends SimplePool<DBPort>
Modifier and Type | Class and Description |
---|---|
static class |
DBPortPool.ConnectionWaitTimeOut
Deprecated.
This class will be dropped in 3.x versions.
Please catch
MongoTimeoutException instead. |
static class |
DBPortPool.NoMoreConnection
Deprecated.
This class will be dropped in 3.x versions.
Please catch
MongoClientException instead. |
static class |
DBPortPool.SemaphoresOut
Deprecated.
This class will be dropped in 3.x versions.
Please catch
MongoWaitQueueFullException instead. |
_avail, _name, _out, _size
Modifier and Type | Method and Description |
---|---|
void |
cleanup(DBPort p)
Deprecated.
Override this if you need to do any cleanup
|
protected DBPort |
createNew()
Deprecated.
Creates a new object of this pool's type.
|
DBPort |
get()
Deprecated.
Gets an object from the pool - will block if none are available
|
java.lang.String |
getHost()
Deprecated.
|
int |
getPort()
Deprecated.
|
ServerAddress |
getServerAddress()
Deprecated.
|
close, done, get, getAvailable, getInUse, getMaxSize, getName, getTotal, pick, remove, toString
public java.lang.String getHost()
public int getPort()
public DBPort get()
SimplePool
get
in class SimplePool<DBPort>
MongoException
public void cleanup(DBPort p)
SimplePool
cleanup
in class SimplePool<DBPort>
p
- the object that was addedprotected DBPort createNew()
SimplePool
createNew
in class SimplePool<DBPort>
public ServerAddress getServerAddress()