Class JsonStreamWriter.Builder (3.11.0)

public static final class JsonStreamWriter.Builder

Inheritance

java.lang.Object > JsonStreamWriter.Builder

Methods

build()

public JsonStreamWriter build()

Builds JsonStreamWriter

Returns
Type Description
JsonStreamWriter

JsonStreamWriter

Exceptions
Type Description
DescriptorValidationException
IllegalArgumentException
IOException
InterruptedException

getStreamName()

public String getStreamName()

Stream name on the builder.

Returns
Type Description
String

Builder

setChannelProvider(TransportChannelProvider channelProvider)

public JsonStreamWriter.Builder setChannelProvider(TransportChannelProvider channelProvider)

Setter for the underlying StreamWriter's TransportChannelProvider.

Parameter
Name Description
channelProvider TransportChannelProvider
Returns
Type Description
JsonStreamWriter.Builder

Builder

setCredentialsProvider(CredentialsProvider credentialsProvider)

public JsonStreamWriter.Builder setCredentialsProvider(CredentialsProvider credentialsProvider)

Setter for the underlying StreamWriter's CredentialsProvider.

Parameter
Name Description
credentialsProvider CredentialsProvider
Returns
Type Description
JsonStreamWriter.Builder

Builder

setEndpoint(String endpoint)

public JsonStreamWriter.Builder setEndpoint(String endpoint)

Setter for the underlying StreamWriter's Endpoint.

Parameter
Name Description
endpoint String
Returns
Type Description
JsonStreamWriter.Builder

Builder

setFlowControlSettings(FlowControlSettings flowControlSettings)

public JsonStreamWriter.Builder setFlowControlSettings(FlowControlSettings flowControlSettings)

Setter for the underlying StreamWriter's FlowControlSettings.

Parameter
Name Description
flowControlSettings FlowControlSettings
Returns
Type Description
JsonStreamWriter.Builder

Builder

setTraceId(String traceId)

public JsonStreamWriter.Builder setTraceId(String traceId)

Setter for a traceId to help identify traffic origin.

Parameter
Name Description
traceId String
Returns
Type Description
JsonStreamWriter.Builder

Builder