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()
java.time.Instant
connectionTime()
Returns the time this connected over the network, or null if not connected yetjava.io.InputStream
drain()
Attempt to drain all outstanding operations, even if this leads to blockingEndpoint
getEndpoint()
void
handshake()
java.time.Instant
lastPollTime()
Returns the last time poll was called on this, or null if neverjava.io.InputStream
poll()
Returns any operation results that are ready nowjava.io.InputStream
write(java.util.List<Document> docs)
-
-
-
Method Detail
-
connectionTime
java.time.Instant connectionTime()
Returns the time this connected over the network, or null if not connected yet
-
lastPollTime
java.time.Instant lastPollTime()
Returns the last time poll was called on this, or null if never
-
write
java.io.InputStream write(java.util.List<Document> docs) throws ServerResponseException, java.io.IOException
- Throws:
ServerResponseException
java.io.IOException
-
poll
java.io.InputStream poll() throws ServerResponseException, java.io.IOException
Returns any operation results that are ready now- Throws:
ServerResponseException
java.io.IOException
-
drain
java.io.InputStream drain() throws ServerResponseException, java.io.IOException
Attempt to drain all outstanding operations, even if this leads to blocking- Throws:
ServerResponseException
java.io.IOException
-
connect
boolean connect()
-
getEndpoint
Endpoint getEndpoint()
-
handshake
void handshake() throws ServerResponseException, java.io.IOException
- Throws:
ServerResponseException
java.io.IOException
-
close
void close()
-
-