|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectrabbit.io.WebConnection
public class WebConnection
A class to handle a connection to the Internet.
| Constructor Summary | |
|---|---|
WebConnection(Address address,
SocketBinder binder,
Counter counter)
Create a new WebConnection to the given InetAddress and port. |
|
| Method Summary | |
|---|---|
void |
close()
|
void |
connect(NioHandler nioHandler,
WebConnectionListener wcl)
|
Address |
getAddress()
|
SocketChannel |
getChannel()
|
boolean |
getKeepalive()
Get the keepalive value of this WebConnection. |
long |
getReleasedAt()
Get the time that this WebConnection was released. |
boolean |
mayPipeline()
Check if this WebConnection may be used for pipelining. |
void |
setKeepalive(boolean b)
Set the keepalive value for this WebConnection, Can only be turned off. |
void |
setMayPipeline(boolean b)
Mark this WebConnection for pipelining. |
void |
setReleased()
Mark this WebConnection as released at current time. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public WebConnection(Address address,
SocketBinder binder,
Counter counter)
address - the computer to connect to.counter - the Counter to used to collect statistics| Method Detail |
|---|
public String toString()
toString in class Objectpublic Address getAddress()
public SocketChannel getChannel()
public void close()
throws IOException
close in interface CloseableIOException
public void connect(NioHandler nioHandler,
WebConnectionListener wcl)
throws IOException
IOExceptionpublic void setKeepalive(boolean b)
b - the new keepalive value.public boolean getKeepalive()
public void setReleased()
public long getReleasedAt()
public void setMayPipeline(boolean b)
public boolean mayPipeline()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||