Class JsonStreamWriter.Builder (3.1.0)

public static final class JsonStreamWriter.Builder

Inheritance

java.lang.Object > JsonStreamWriter.Builder

Methods

build()

public JsonStreamWriter build()

Builds JsonStreamWriter

Returns
TypeDescription
JsonStreamWriter

JsonStreamWriter

Exceptions
TypeDescription
DescriptorValidationException
IllegalArgumentException
IOException
InterruptedException

getStreamName()

public String getStreamName()

Stream name on the builder.

Returns
TypeDescription
String

Builder

setChannelProvider(TransportChannelProvider channelProvider)

public JsonStreamWriter.Builder setChannelProvider(TransportChannelProvider channelProvider)

Setter for the underlying StreamWriter's TransportChannelProvider.

Parameter
NameDescription
channelProviderTransportChannelProvider
Returns
TypeDescription
JsonStreamWriter.Builder

Builder

setCredentialsProvider(CredentialsProvider credentialsProvider)

public JsonStreamWriter.Builder setCredentialsProvider(CredentialsProvider credentialsProvider)

Setter for the underlying StreamWriter's CredentialsProvider.

Parameter
NameDescription
credentialsProviderCredentialsProvider
Returns
TypeDescription
JsonStreamWriter.Builder

Builder

setEndpoint(String endpoint)

public JsonStreamWriter.Builder setEndpoint(String endpoint)

Setter for the underlying StreamWriter's Endpoint.

Parameter
NameDescription
endpointString
Returns
TypeDescription
JsonStreamWriter.Builder

Builder

setFlowControlSettings(FlowControlSettings flowControlSettings)

public JsonStreamWriter.Builder setFlowControlSettings(FlowControlSettings flowControlSettings)

Setter for the underlying StreamWriter's FlowControlSettings.

Parameter
NameDescription
flowControlSettingsFlowControlSettings
Returns
TypeDescription
JsonStreamWriter.Builder

Builder

setTraceId(String traceId)

public JsonStreamWriter.Builder setTraceId(String traceId)

Setter for a traceId to help identify traffic origin.

Parameter
NameDescription
traceIdString
Returns
TypeDescription
JsonStreamWriter.Builder

Builder