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 TypeMethodDescriptionvoid
close()
boolean
connect()
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 blockingvoid
held()
Returns the document currently held in thisvoid
hold
(boolean hold) Returns the last time poll was called on this, or null if neverpoll()
Returns any operation results that are ready nowvoid
throwOnHandshake
(ServerResponseException throwThisOnHandshake) void
throwOnWrite
(IOException throwThisOnWrite)
-
Constructor Details
-
DryRunGatewayConnection
-
-
Method Details
-
write
- Specified by:
write
in interfaceGatewayConnection
- Throws:
IOException
-
poll
Description copied from interface:GatewayConnection
Returns any operation results that are ready now- Specified by:
poll
in interfaceGatewayConnection
- Throws:
IOException
-
lastPollTime
Description copied from interface:GatewayConnection
Returns the last time poll was called on this, or null if never- Specified by:
lastPollTime
in interfaceGatewayConnection
-
drain
Description copied from interface:GatewayConnection
Attempt to drain all outstanding operations, even if this leads to blocking- Specified by:
drain
in interfaceGatewayConnection
- Throws:
IOException
-
connect
public boolean connect()- Specified by:
connect
in interfaceGatewayConnection
-
connectionTime
Description copied from interface:GatewayConnection
Returns the time this connected over the network, or null if not connected yet- Specified by:
connectionTime
in interfaceGatewayConnection
-
getEndpoint
- Specified by:
getEndpoint
in interfaceGatewayConnection
-
handshake
- Specified by:
handshake
in interfaceGatewayConnection
- Throws:
ServerResponseException
-
close
public void close()- Specified by:
close
in interfaceGatewayConnection
-
hold
public void hold(boolean hold) -
held
Returns the document currently held in this -
throwOnWrite
-
throwOnHandshake
-