Class IdATransport1
java.lang.Object
com.io7m.idstore.admin_client.internal.IdATransport1
- All Implemented Interfaces:
com.io7m.hibiscus.api.HBClientCloseableType<IdAClientException>
,com.io7m.hibiscus.api.HBIOOperationsType<IdAMessageType,
,IdAClientException> com.io7m.hibiscus.api.HBTransportType<IdAMessageType,
,IdAClientException> IdATransportType
,AutoCloseable
The version 1 transport.
-
Constructor Summary
ConstructorDescriptionIdATransport1
(IdStrings inStrings, HttpClient inHttpClient, URI baseURI) The version 1 transport. -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
boolean
isClosed()
com.io7m.hibiscus.api.HBReadType
<IdAMessageType> void
send
(IdAMessageType message) void
sendAndForget
(IdAMessageType message) sendAndWait
(IdAMessageType message, Duration timeout) toString()
-
Constructor Details
-
IdATransport1
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<IdAClientException>
-
close
public void close()- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfacecom.io7m.hibiscus.api.HBClientCloseableType<IdAClientException>
-
receive
public com.io7m.hibiscus.api.HBReadType<IdAMessageType> receive(Duration timeout) throws IdAClientException, InterruptedException - Specified by:
receive
in interfacecom.io7m.hibiscus.api.HBIOOperationsType<IdAMessageType,
IdAClientException> - Throws:
IdAClientException
InterruptedException
-
send
- Specified by:
send
in interfacecom.io7m.hibiscus.api.HBIOOperationsType<IdAMessageType,
IdAClientException> - Throws:
IdAClientException
InterruptedException
-
sendAndForget
- Specified by:
sendAndForget
in interfacecom.io7m.hibiscus.api.HBIOOperationsType<IdAMessageType,
IdAClientException> - Throws:
IdAClientException
InterruptedException
-
sendAndWait
public IdAMessageType sendAndWait(IdAMessageType message, Duration timeout) throws IdAClientException, InterruptedException - Specified by:
sendAndWait
in interfacecom.io7m.hibiscus.api.HBIOOperationsType<IdAMessageType,
IdAClientException> - Throws:
IdAClientException
InterruptedException
-
toString
-