Class ProtocolEngine
java.lang.Object
com.sportradar.mbs.sdk.internal.protocol.ProtocolEngine
- All Implemented Interfaces:
AutoCloseable
-
Constructor Summary
ConstructorsConstructorDescriptionProtocolEngine
(ImmutableConfig config, Consumer<Exception> unhandledExceptionHandler) -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
void
connect()
<T extends ContentRequest,
R extends ContentResponse>
CompletableFuture<R>
-
Constructor Details
-
ProtocolEngine
-
-
Method Details
-
connect
public void connect() -
close
public void close()- Specified by:
close
in interfaceAutoCloseable
-
execute
public <T extends ContentRequest,R extends ContentResponse> CompletableFuture<R> execute(String operation, T content, Class<R> responseClass)
-