Interface GatewayConnection
-
- All Known Implementing Classes:
DryRunGatewayConnection
public interface GatewayConnection
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
close()
boolean
connect()
Instant
connectionTime()
Returns the time this connected over the network, or null if not connected yetInputStream
drain()
Attempt to drain all outstanding operations, even if this leads to blockingEndpoint
getEndpoint()
void
handshake()
Instant
lastPollTime()
Returns the last time poll was called on this, or null if neverInputStream
poll()
Returns any operation results that are ready nowInputStream
write(List<Document> docs)
-
-
-
Method Detail
-
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
InputStream write(List<Document> docs) throws ServerResponseException, IOException
- Throws:
ServerResponseException
IOException
-
poll
InputStream poll() throws ServerResponseException, IOException
Returns any operation results that are ready now- Throws:
ServerResponseException
IOException
-
drain
InputStream drain() throws ServerResponseException, IOException
Attempt to drain all outstanding operations, even if this leads to blocking- Throws:
ServerResponseException
IOException
-
connect
boolean connect()
-
getEndpoint
Endpoint getEndpoint()
-
handshake
void handshake() throws ServerResponseException, IOException
- Throws:
ServerResponseException
IOException
-
close
void close()
-
-