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