|
||||||||||
| 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,
Counter counter,
Logger logger)
Create a new WebConnection to the given InetAddress and port. |
|
| Method Summary | |
|---|---|
void |
close()
|
void |
connect(Selector selector,
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,
Counter counter,
Logger logger)
address - the computer to connect to.counter - the Counter to used to collect statisticslogger - the Logger to use.| Method Detail |
|---|
public String toString()
toString in class Objectpublic Address getAddress()
public SocketChannel getChannel()
public void close()
throws IOException
IOException
public void connect(Selector selector,
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 | |||||||||