Interface GatewayConnection
- All Known Implementing Classes:
DryRunGatewayConnection
public interface GatewayConnection
-
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
Returns 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:
ServerResponseException
IOException
-
poll
Returns any operation results that are ready now- Throws:
ServerResponseException
IOException
-
drain
Attempt to drain all outstanding operations, even if this leads to blocking- Throws:
ServerResponseException
IOException
-
connect
boolean connect() -
getEndpoint
Endpoint getEndpoint() -
handshake
- Throws:
ServerResponseException
IOException
-
close
void close()
-