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
ConstructorsConstructorDescriptionIdUTransport1(IdStrings inStrings, HttpClient inHttpClient, URI baseURI) The version 1 transport. -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()booleanisClosed()com.io7m.hibiscus.api.HBReadType<IdUMessageType> voidsend(IdUMessageType message) voidsendAndForget(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:
isClosedin interfacecom.io7m.hibiscus.api.HBClientCloseableType<IdUClientException>
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfacecom.io7m.hibiscus.api.HBClientCloseableType<IdUClientException>- Throws:
IdUClientException
-
receive
public com.io7m.hibiscus.api.HBReadType<IdUMessageType> receive(Duration timeout) throws IdUClientException, InterruptedException - Specified by:
receivein interfacecom.io7m.hibiscus.api.HBIOOperationsType<IdUMessageType,IdUClientException> - Throws:
IdUClientExceptionInterruptedException
-
send
- Specified by:
sendin interfacecom.io7m.hibiscus.api.HBIOOperationsType<IdUMessageType,IdUClientException> - Throws:
IdUClientExceptionInterruptedException
-
sendAndForget
- Specified by:
sendAndForgetin interfacecom.io7m.hibiscus.api.HBIOOperationsType<IdUMessageType,IdUClientException> - Throws:
IdUClientExceptionInterruptedException
-
sendAndWait
public IdUMessageType sendAndWait(IdUMessageType message, Duration timeout) throws IdUClientException, InterruptedException, TimeoutException - Specified by:
sendAndWaitin interfacecom.io7m.hibiscus.api.HBIOOperationsType<IdUMessageType,IdUClientException> - Throws:
IdUClientExceptionInterruptedExceptionTimeoutException
-