public class Connection
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static Connection |
create(java.lang.String host,
int port,
boolean useCache)
Get a connection from the ConnPool
|
void |
free()
Free the connection object
|
java.io.InputStream |
getInputDtream()
Get the InputStream
|
java.lang.String |
getNode()
Get the host
|
java.io.OutputStream |
getOutputStream()
Get the OutputStream
|
int |
getPort()
Get the port
|
void |
release()
Release the connection object
|
public java.lang.String getNode()
public int getPort()
public java.io.OutputStream getOutputStream()
public java.io.InputStream getInputDtream()
public static Connection create(java.lang.String host, int port, boolean useCache)
host
- the hostport
- the portuseCache
- use cache or notpublic void release()
public void free()