public final class Agent
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
class |
Agent.CertificateResponse |
class |
Agent.StateResponse<T> |
class |
Agent.UpdateResponse |
| Modifier and Type | Method and Description |
|---|---|
java.util.concurrent.CompletableFuture<Agent.UpdateResponse> |
callEndpoint(org.ic4j.types.Principal effectiveCanisterId,
CallRequestContent request,
java.util.Map<java.lang.String,java.lang.String> headers) |
void |
close() |
void |
fetchRootKey() |
java.util.concurrent.CompletableFuture<QueryResponse> |
queryEndpoint(org.ic4j.types.Principal effectiveCanisterId,
QueryContent request,
java.util.Map<java.lang.String,java.lang.String> headers) |
java.util.concurrent.CompletableFuture<byte[]> |
queryRaw(org.ic4j.types.Principal canisterId,
org.ic4j.types.Principal effectiveCanisterId,
java.lang.String method,
byte[] arg,
java.util.Optional<java.lang.Long> ingressExpiryDatetime) |
java.util.concurrent.CompletableFuture<Response<byte[]>> |
queryRaw(org.ic4j.types.Principal canisterId,
org.ic4j.types.Principal effectiveCanisterId,
java.lang.String method,
Request<byte[]> request,
java.util.Optional<java.lang.Long> ingressExpiryDatetime) |
<T> java.util.concurrent.CompletableFuture<Agent.StateResponse<T>> |
readStateEndpoint(org.ic4j.types.Principal effectiveCanisterId,
ReadStateContent request,
java.util.Map<java.lang.String,java.lang.String> headers,
java.lang.Class<T> clazz) |
java.util.concurrent.CompletableFuture<Agent.CertificateResponse> |
readStateRaw(org.ic4j.types.Principal effectiveCanisterId,
java.util.List<java.util.List<byte[]>> paths,
boolean disableRangeCheck,
java.util.Map<java.lang.String,java.lang.String> headers) |
java.util.concurrent.CompletableFuture<Agent.CertificateResponse> |
readStateRaw(org.ic4j.types.Principal effectiveCanisterId,
java.util.List<java.util.List<byte[]>> paths,
java.util.Map<java.lang.String,java.lang.String> headers) |
java.util.concurrent.CompletableFuture<RequestStatusResponse> |
requestStatusRaw(RequestId requestId,
org.ic4j.types.Principal effectiveCanisterId) |
java.util.concurrent.CompletableFuture<RequestStatusResponse> |
requestStatusRaw(RequestId requestId,
org.ic4j.types.Principal effectiveCanisterId,
boolean disableRangeCheck) |
java.util.concurrent.CompletableFuture<Response<RequestStatusResponse>> |
requestStatusRaw(RequestId requestId,
org.ic4j.types.Principal effectiveCanisterId,
boolean disableRangeCheck,
Request<java.lang.Void> request) |
java.util.concurrent.CompletableFuture<Response<RequestStatusResponse>> |
requestStatusRaw(RequestId requestId,
org.ic4j.types.Principal effectiveCanisterId,
Request<java.lang.Void> request) |
void |
setRootKey(byte[] rootKey) |
void |
setVerify(boolean verify) |
java.util.concurrent.CompletableFuture<Status> |
status() |
java.util.concurrent.CompletableFuture<RequestId> |
updateRaw(org.ic4j.types.Principal canisterId,
org.ic4j.types.Principal effectiveCanisterId,
java.lang.String method,
byte[] arg,
java.util.Optional<java.lang.Long> ingressExpiryDatetime) |
java.util.concurrent.CompletableFuture<Response<RequestId>> |
updateRaw(org.ic4j.types.Principal canisterId,
org.ic4j.types.Principal effectiveCanisterId,
java.lang.String method,
Request<byte[]> request,
java.util.Optional<java.lang.Long> ingressExpiryDatetime) |
void |
verify(Certificate certificate,
org.ic4j.types.Principal effectiveCanisterId,
boolean disableRangeCheck) |
public void setVerify(boolean verify)
public void fetchRootKey()
throws AgentError
AgentErrorpublic void setRootKey(byte[] rootKey)
throws AgentError
AgentErrorpublic java.util.concurrent.CompletableFuture<Status> status() throws AgentError
AgentErrorpublic java.util.concurrent.CompletableFuture<Response<byte[]>> queryRaw(org.ic4j.types.Principal canisterId, org.ic4j.types.Principal effectiveCanisterId, java.lang.String method, Request<byte[]> request, java.util.Optional<java.lang.Long> ingressExpiryDatetime) throws AgentError
AgentErrorpublic java.util.concurrent.CompletableFuture<byte[]> queryRaw(org.ic4j.types.Principal canisterId,
org.ic4j.types.Principal effectiveCanisterId,
java.lang.String method,
byte[] arg,
java.util.Optional<java.lang.Long> ingressExpiryDatetime)
throws AgentError
AgentErrorpublic java.util.concurrent.CompletableFuture<QueryResponse> queryEndpoint(org.ic4j.types.Principal effectiveCanisterId, QueryContent request, java.util.Map<java.lang.String,java.lang.String> headers) throws AgentError
AgentErrorpublic java.util.concurrent.CompletableFuture<Response<RequestId>> updateRaw(org.ic4j.types.Principal canisterId, org.ic4j.types.Principal effectiveCanisterId, java.lang.String method, Request<byte[]> request, java.util.Optional<java.lang.Long> ingressExpiryDatetime) throws AgentError
AgentErrorpublic java.util.concurrent.CompletableFuture<RequestId> updateRaw(org.ic4j.types.Principal canisterId, org.ic4j.types.Principal effectiveCanisterId, java.lang.String method, byte[] arg, java.util.Optional<java.lang.Long> ingressExpiryDatetime) throws AgentError
AgentErrorpublic java.util.concurrent.CompletableFuture<Agent.UpdateResponse> callEndpoint(org.ic4j.types.Principal effectiveCanisterId, CallRequestContent request, java.util.Map<java.lang.String,java.lang.String> headers) throws AgentError
AgentErrorpublic java.util.concurrent.CompletableFuture<Response<RequestStatusResponse>> requestStatusRaw(RequestId requestId, org.ic4j.types.Principal effectiveCanisterId, Request<java.lang.Void> request) throws AgentError
AgentErrorpublic java.util.concurrent.CompletableFuture<Response<RequestStatusResponse>> requestStatusRaw(RequestId requestId, org.ic4j.types.Principal effectiveCanisterId, boolean disableRangeCheck, Request<java.lang.Void> request) throws AgentError
AgentErrorpublic java.util.concurrent.CompletableFuture<RequestStatusResponse> requestStatusRaw(RequestId requestId, org.ic4j.types.Principal effectiveCanisterId) throws AgentError
AgentErrorpublic java.util.concurrent.CompletableFuture<RequestStatusResponse> requestStatusRaw(RequestId requestId, org.ic4j.types.Principal effectiveCanisterId, boolean disableRangeCheck) throws AgentError
AgentErrorpublic java.util.concurrent.CompletableFuture<Agent.CertificateResponse> readStateRaw(org.ic4j.types.Principal effectiveCanisterId, java.util.List<java.util.List<byte[]>> paths, java.util.Map<java.lang.String,java.lang.String> headers) throws AgentError
AgentErrorpublic java.util.concurrent.CompletableFuture<Agent.CertificateResponse> readStateRaw(org.ic4j.types.Principal effectiveCanisterId, java.util.List<java.util.List<byte[]>> paths, boolean disableRangeCheck, java.util.Map<java.lang.String,java.lang.String> headers) throws AgentError
AgentErrorpublic void verify(Certificate certificate, org.ic4j.types.Principal effectiveCanisterId, boolean disableRangeCheck) throws AgentError
AgentErrorpublic <T> java.util.concurrent.CompletableFuture<Agent.StateResponse<T>> readStateEndpoint(org.ic4j.types.Principal effectiveCanisterId, ReadStateContent request, java.util.Map<java.lang.String,java.lang.String> headers, java.lang.Class<T> clazz) throws AgentError
AgentErrorpublic void close()