Interface GatewayConnection
- All Known Implementing Classes:
DryRunGatewayConnection
public interface GatewayConnection
-
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 blockingvoidReturns the last time poll was called on this, or null if neverpoll()Returns any operation results that are ready now
-
Method Details
-
connectionTime
Instant connectionTime()Returns the time this connected over the network, or null if not connected yet -
lastPollTime
Instant lastPollTime()Returns the last time poll was called on this, or null if never -
write
- Throws:
ServerResponseExceptionIOException
-
poll
Returns any operation results that are ready now- Throws:
ServerResponseExceptionIOException
-
drain
Attempt to drain all outstanding operations, even if this leads to blocking- Throws:
ServerResponseExceptionIOException
-
connect
boolean connect() -
getEndpoint
Endpoint getEndpoint() -
handshake
- Throws:
ServerResponseExceptionIOException
-
close
void close()
-