Package com.oracle.coherence.client
Class GrpcSessionConfiguration.Builder
- java.lang.Object
-
- com.oracle.coherence.client.GrpcSessionConfiguration.Builder
-
- Enclosing interface:
- GrpcSessionConfiguration
public static class GrpcSessionConfiguration.Builder extends Object
A builder that buildsGrpcSessionConfigurationinstances.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GrpcSessionConfigurationbuild()Build aGrpcSessionConfiguration.GrpcSessionConfiguration.Buildernamed(String sName)Set the session name.GrpcSessionConfiguration.BuilderwithPriority(int nPriority)Set the session creation priority.GrpcSessionConfiguration.BuilderwithScopeName(String sScopeName)Set the scope name.GrpcSessionConfiguration.BuilderwithSerializer(com.tangosol.io.Serializer serializer)Set the serializer.GrpcSessionConfiguration.BuilderwithSerializer(com.tangosol.io.Serializer serializer, String sFormat)Set the serializer and format.GrpcSessionConfiguration.BuilderwithSerializerFormat(String sFormat)Set the serializer format.GrpcSessionConfiguration.BuilderwithTracing(boolean fEnabled)Enable or disable tracing.
-
-
-
Method Detail
-
named
public GrpcSessionConfiguration.Builder named(String sName)
Set the session name.- Parameters:
sName- the session name- Returns:
- this
GrpcSessionConfiguration.Builder
-
withPriority
public GrpcSessionConfiguration.Builder withPriority(int nPriority)
Set the session creation priority.- Parameters:
nPriority- the session creation priority- Returns:
- this
GrpcSessionConfiguration.Builder - See Also:
SessionConfiguration.getPriority(),GrpcSessionConfiguration.DEFAULT_PRIORITY
-
withScopeName
public GrpcSessionConfiguration.Builder withScopeName(String sScopeName)
Set the scope name.- Parameters:
sScopeName- the scope name- Returns:
- this
GrpcSessionConfiguration.Builder
-
withSerializer
public GrpcSessionConfiguration.Builder withSerializer(com.tangosol.io.Serializer serializer)
Set the serializer.- Parameters:
serializer- the serializer- Returns:
- this
GrpcSessionConfiguration.Builder
-
withSerializer
public GrpcSessionConfiguration.Builder withSerializer(com.tangosol.io.Serializer serializer, String sFormat)
Set the serializer and format.- Parameters:
serializer- the serializersFormat- the serializer format- Returns:
- this
GrpcSessionConfiguration.Builder
-
withSerializerFormat
public GrpcSessionConfiguration.Builder withSerializerFormat(String sFormat)
Set the serializer format.- Parameters:
sFormat- the serializer format- Returns:
- this
GrpcSessionConfiguration.Builder
-
withTracing
public GrpcSessionConfiguration.Builder withTracing(boolean fEnabled)
Enable or disable tracing.- Parameters:
fEnabled-trueto enable tracing- Returns:
- this
GrpcSessionConfiguration.Builder
-
build
public GrpcSessionConfiguration build()
Build aGrpcSessionConfiguration.- Returns:
- a
GrpcSessionConfiguration
-
-