Class IdUTransport1
java.lang.Object
com.io7m.idstore.user_client.internal.IdUTransport1
- All Implemented Interfaces:
com.io7m.hibiscus.api.HBClientCloseableType<IdUClientException>
,com.io7m.hibiscus.api.HBIOOperationsType<IdUMessageType,
,IdUClientException> com.io7m.hibiscus.api.HBTransportType<IdUMessageType,
,IdUClientException> IdUTransportType
,AutoCloseable
The version 1 transport.
-
Constructor Summary
ConstructorDescriptionIdUTransport1
(IdStrings inStrings, HttpClient inHttpClient, URI baseURI) The version 1 transport. -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
boolean
isClosed()
com.io7m.hibiscus.api.HBReadType
<IdUMessageType> void
send
(IdUMessageType message) void
sendAndForget
(IdUMessageType message) sendAndWait
(IdUMessageType message, Duration timeout)
-
Constructor Details
-
IdUTransport1
The version 1 transport.- Parameters:
inStrings
- The string resourcesinHttpClient
- The HTTP clientbaseURI
- The base URI
-
-
Method Details
-
isClosed
public boolean isClosed()- Specified by:
isClosed
in interfacecom.io7m.hibiscus.api.HBClientCloseableType<IdUClientException>
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfacecom.io7m.hibiscus.api.HBClientCloseableType<IdUClientException>
- Throws:
IdUClientException
-
receive
public com.io7m.hibiscus.api.HBReadType<IdUMessageType> receive(Duration timeout) throws IdUClientException, InterruptedException - Specified by:
receive
in interfacecom.io7m.hibiscus.api.HBIOOperationsType<IdUMessageType,
IdUClientException> - Throws:
IdUClientException
InterruptedException
-
send
- Specified by:
send
in interfacecom.io7m.hibiscus.api.HBIOOperationsType<IdUMessageType,
IdUClientException> - Throws:
IdUClientException
InterruptedException
-
sendAndForget
- Specified by:
sendAndForget
in interfacecom.io7m.hibiscus.api.HBIOOperationsType<IdUMessageType,
IdUClientException> - Throws:
IdUClientException
InterruptedException
-
sendAndWait
public IdUMessageType sendAndWait(IdUMessageType message, Duration timeout) throws IdUClientException, InterruptedException, TimeoutException - Specified by:
sendAndWait
in interfacecom.io7m.hibiscus.api.HBIOOperationsType<IdUMessageType,
IdUClientException> - Throws:
IdUClientException
InterruptedException
TimeoutException
-