java.lang.Object
tech.deplant.java4ever.binding.EverSdk
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic 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> Tawait(CompletableFuture<T> functionOutputs) static EverSdk.Builderbuilder()static Client.ClientConfigcontextConfig(int contextId) static intstatic intcreateWithConfig(Client.ClientConfig config) static intcreateWithEndpoint(String endpoint) static intcreateWithJson(String configJson) static voiddestroy(int contextId) static longgetDefaultWorkchainId(int contextId) static voidload()static voidload(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
-