public class ReplicaOkHttpTransport extends java.lang.Object implements ReplicaTransport
| Modifier and Type | Field and Description |
|---|---|
protected static org.slf4j.Logger |
LOG |
| Modifier and Type | Method and Description |
|---|---|
java.util.concurrent.CompletableFuture<ReplicaResponse> |
call(org.ic4j.types.Principal containerId,
byte[] envelope,
RequestId requestId,
java.util.Map<java.lang.String,java.lang.String> headers) |
void |
close() |
static ReplicaTransport |
create(java.lang.String url) |
static ReplicaTransport |
create(java.lang.String url,
int timeout) |
java.util.concurrent.CompletableFuture<ReplicaResponse> |
query(org.ic4j.types.Principal containerId,
byte[] envelope,
java.util.Map<java.lang.String,java.lang.String> headers) |
java.util.concurrent.CompletableFuture<ReplicaResponse> |
readState(org.ic4j.types.Principal containerId,
byte[] envelope,
java.util.Map<java.lang.String,java.lang.String> headers) |
java.util.concurrent.CompletableFuture<ReplicaResponse> |
status() |
public static ReplicaTransport create(java.lang.String url) throws java.net.URISyntaxException
java.net.URISyntaxExceptionpublic static ReplicaTransport create(java.lang.String url, int timeout) throws java.net.URISyntaxException
java.net.URISyntaxExceptionpublic java.util.concurrent.CompletableFuture<ReplicaResponse> status()
status in interface ReplicaTransportpublic java.util.concurrent.CompletableFuture<ReplicaResponse> query(org.ic4j.types.Principal containerId, byte[] envelope, java.util.Map<java.lang.String,java.lang.String> headers)
query in interface ReplicaTransportpublic java.util.concurrent.CompletableFuture<ReplicaResponse> call(org.ic4j.types.Principal containerId, byte[] envelope, RequestId requestId, java.util.Map<java.lang.String,java.lang.String> headers)
call in interface ReplicaTransportpublic java.util.concurrent.CompletableFuture<ReplicaResponse> readState(org.ic4j.types.Principal containerId, byte[] envelope, java.util.Map<java.lang.String,java.lang.String> headers)
readState in interface ReplicaTransportpublic void close()
close in interface ReplicaTransport