java.lang.Object
tech.deplant.java4ever.binding.EverSdk
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
static final record
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <T,
P> CompletableFuture <T> static <T,
P> CompletableFuture <T> asyncAppObject
(int contextId, String functionName, P functionInputs, Class<T> outputClass, AppObject appObject) static <T,
P> CompletableFuture <T> asyncCallback
(int contextId, String functionName, P functionInputs, Class<T> outputClass, Consumer<com.fasterxml.jackson.databind.JsonNode> eventConsumer) static <P> CompletableFuture
<Void> static <T> T
await
(CompletableFuture<T> functionOutputs) static EverSdk.Builder
builder()
static Client.ClientConfig
contextConfig
(int contextId) static int
static int
createWithConfig
(Client.ClientConfig config) static int
createWithEndpoint
(String endpoint) static int
createWithJson
(String configJson) static void
destroy
(int contextId) static long
getDefaultWorkchainId
(int contextId) static void
load()
static void
load
(LibraryLoader loader)
-
Field Details
-
LOG_FORMAT
- See Also:
-
-
Constructor Details
-
EverSdk
public EverSdk()
-
-
Method Details
-
contextConfig
-
getDefaultWorkchainId
public static long getDefaultWorkchainId(int contextId) -
load
public static void load() -
load
-
asyncVoid
public static <P> CompletableFuture<Void> asyncVoid(int contextId, String functionName, P functionInputs) throws EverSdkException - Throws:
EverSdkException
-
async
public static <T,P> CompletableFuture<T> async(int contextId, String functionName, P functionInputs, Class<T> outputClass) throws EverSdkException - Throws:
EverSdkException
-
asyncCallback
public static <T,P> CompletableFuture<T> asyncCallback(int contextId, String functionName, P functionInputs, Class<T> outputClass, Consumer<com.fasterxml.jackson.databind.JsonNode> eventConsumer) throws EverSdkException - Throws:
EverSdkException
-
asyncAppObject
public static <T,P> CompletableFuture<T> asyncAppObject(int contextId, String functionName, P functionInputs, Class<T> outputClass, AppObject appObject) throws EverSdkException - Throws:
EverSdkException
-
destroy
public static void destroy(int contextId) -
createDefault
- Throws:
EverSdkException
-
builder
-
createWithEndpoint
- Throws:
EverSdkException
-
createWithConfig
- Throws:
EverSdkException
-
createWithJson
- Throws:
EverSdkException
-
await
- Throws:
EverSdkException
-