Package com.oracle.bmc.streaming
Class AbstractStreamBasedClientBuilder<B extends AbstractStreamBasedClientBuilder,C>
- java.lang.Object
- 
- com.oracle.bmc.common.ClientBuilderBase<B,C>
- 
- com.oracle.bmc.streaming.AbstractStreamBasedClientBuilder<B,C>
 
 
- 
- Type Parameters:
- B- actual class of the builder
- C- client class
 - Direct Known Subclasses:
- StreamAsyncClientBuilder,- StreamClientBuilder
 
 public abstract class AbstractStreamBasedClientBuilder<B extends AbstractStreamBasedClientBuilder,C> extends ClientBuilderBase<B,C> A builder for a client that requires a stream.
- 
- 
Field SummaryFields Modifier and Type Field Description protected Streamstreamprotected StreamSummarystreamSummary- 
Fields inherited from class com.oracle.bmc.common.ClientBuilderBaseadditionalClientConfigurators, clientConfigurator, configuration, endpoint, requestSignerFactory
 
- 
 - 
Constructor SummaryConstructors Constructor Description AbstractStreamBasedClientBuilder(Service service)Creates a new AbstractStreamBasedClientBuilder object.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description BcopyFrom(B fromBuilder)Set the values in this builder to be the same as in the provided other builder.protected StringgetEndpoint()Gets the endpoint that is either provided, defined within the stream, or defined within the stream summary.Bstream(Stream stream)Set the stream.BstreamSummary(StreamSummary streamSummary)Set the stream summary.- 
Methods inherited from class com.oracle.bmc.common.ClientBuilderBaseadditionalClientConfigurator, additionalClientConfigurators, build, clientConfigurator, configuration, endpoint, httpProvider, requestSignerFactory, signingStrategyRequestSignerFactories
 
- 
 
- 
- 
- 
Field Detail- 
streamprotected Stream stream 
 - 
streamSummaryprotected StreamSummary streamSummary 
 
- 
 - 
Constructor Detail- 
AbstractStreamBasedClientBuilderpublic AbstractStreamBasedClientBuilder(Service service) Creates a new AbstractStreamBasedClientBuilder object.
 
- 
 - 
Method Detail- 
streampublic B stream(Stream stream) Set the stream.May be null - Parameters:
- stream- the stream to use. May be null.
- Returns:
- this builder
 
 - 
streamSummarypublic B streamSummary(StreamSummary streamSummary) Set the stream summary.May be null - Parameters:
- streamSummary- the stream summary to use. May be null
- Returns:
- this builder
 
 - 
getEndpointprotected String getEndpoint() Gets the endpoint that is either provided, defined within the stream, or defined within the stream summary.- Returns:
- the endpoint
- Throws:
- IllegalArgumentException- if more than one endpoint is defined
 
 - 
copyFrompublic B copyFrom(B fromBuilder) Set the values in this builder to be the same as in the provided other builder.- Overrides:
- copyFromin class- ClientBuilderBase<B extends AbstractStreamBasedClientBuilder,C>
- Parameters:
- fromBuilder- other builder
- Returns:
- this builder, with updated values
 
 
- 
 
-