Package io.hyperfoil.api.connection
Interface Connection
-
public interface Connection
-
-
Field Summary
Fields Modifier and Type Field Description static java.io.IOExceptionCLOSED_EXCEPTIONstatic java.io.IOExceptionSELF_CLOSED_EXCEPTION
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidclose()This is an external request to close the connectionio.netty.channel.ChannelHandlerContextcontext()java.lang.Stringhost()intinFlight()booleanisAvailable()booleanisClosed()booleanisOpen()voidonAcquire()voidsetClosed()Invoked by the pool when the connection got closed.
-
-
-
Method Detail
-
context
io.netty.channel.ChannelHandlerContext context()
-
onAcquire
void onAcquire()
-
isAvailable
boolean isAvailable()
-
inFlight
int inFlight()
-
close
void close()
This is an external request to close the connection
-
setClosed
void setClosed()
Invoked by the pool when the connection got closed.
-
isOpen
boolean isOpen()
-
isClosed
boolean isClosed()
-
host
java.lang.String host()
-
-