Class DryRunGatewayConnection
java.lang.Object
com.yahoo.vespa.http.client.core.communication.DryRunGatewayConnection
- All Implemented Interfaces:
GatewayConnection
Dummy implementation.
- Author:
- dybis
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()booleanconnect()Returns the time this connected over the network, or null if not connected yetdrain()Attempt to drain all outstanding operations, even if this leads to blockingvoidheld()Returns the document currently held in thisvoidhold(boolean hold) Returns the last time poll was called on this, or null if neverpoll()Returns any operation results that are ready nowvoidthrowOnHandshake(ServerResponseException throwThisOnHandshake) voidthrowOnWrite(IOException throwThisOnWrite)
-
Constructor Details
-
DryRunGatewayConnection
-
-
Method Details
-
write
- Specified by:
writein interfaceGatewayConnection- Throws:
IOException
-
poll
Description copied from interface:GatewayConnectionReturns any operation results that are ready now- Specified by:
pollin interfaceGatewayConnection- Throws:
IOException
-
lastPollTime
Description copied from interface:GatewayConnectionReturns the last time poll was called on this, or null if never- Specified by:
lastPollTimein interfaceGatewayConnection
-
drain
Description copied from interface:GatewayConnectionAttempt to drain all outstanding operations, even if this leads to blocking- Specified by:
drainin interfaceGatewayConnection- Throws:
IOException
-
connect
public boolean connect()- Specified by:
connectin interfaceGatewayConnection
-
connectionTime
Description copied from interface:GatewayConnectionReturns the time this connected over the network, or null if not connected yet- Specified by:
connectionTimein interfaceGatewayConnection
-
getEndpoint
- Specified by:
getEndpointin interfaceGatewayConnection
-
handshake
- Specified by:
handshakein interfaceGatewayConnection- Throws:
ServerResponseException
-
close
public void close()- Specified by:
closein interfaceGatewayConnection
-
hold
public void hold(boolean hold) -
held
Returns the document currently held in this -
throwOnWrite
-
throwOnHandshake
-