Package io.strmprivacy.driver.client
Class StrmPrivacyClient
- java.lang.Object
-
- io.strmprivacy.driver.client.StrmPrivacyClient
-
public class StrmPrivacyClient extends java.lang.ObjectTalks to the STRM Privacy, both to the gateway and the egress.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classStrmPrivacyClient.Builder
-
Constructor Summary
Constructors Constructor Description StrmPrivacyClient(java.lang.String clientId, java.lang.String clientSecret, Config config)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static StrmPrivacyClient.Builderbuilder()java.util.concurrent.CompletableFuture<org.eclipse.jetty.client.api.ContentResponse>send(io.strmprivacy.schemas.StrmPrivacyEvent event)send an StrmPrivacyEvent.java.util.concurrent.CompletableFuture<org.eclipse.jetty.client.api.ContentResponse>send(io.strmprivacy.schemas.StrmPrivacyEvent event, java.lang.Object serializationType)Deprecated.voidstop()Disconnects the client and frees up any resources
-
-
-
Constructor Detail
-
StrmPrivacyClient
public StrmPrivacyClient(java.lang.String clientId, java.lang.String clientSecret, Config config)
-
-
Method Detail
-
builder
public static StrmPrivacyClient.Builder builder()
-
send
@Deprecated public java.util.concurrent.CompletableFuture<org.eclipse.jetty.client.api.ContentResponse> send(io.strmprivacy.schemas.StrmPrivacyEvent event, java.lang.Object serializationType)Deprecated.
-
send
public java.util.concurrent.CompletableFuture<org.eclipse.jetty.client.api.ContentResponse> send(io.strmprivacy.schemas.StrmPrivacyEvent event)
send an StrmPrivacyEvent.- Parameters:
event- the event.- Returns:
- future containing the content response
-
stop
public void stop()
Disconnects the client and frees up any resources
-
-