Class MsgModuleClientBuilder<O>
java.lang.Object
com.scaleoutsoftware.modules.client.MsgModuleClientBuilder<O>
- Type Parameters:
O- the type of the SOSS object.
The MsgModuleClientBuilder is used to instantiate a
MsgModuleClient-
Constructor Summary
ConstructorsConstructorDescriptionMsgModuleClientBuilder(String moduleName, Type sossObjectType) Instantiate this builder. -
Method Summary
Modifier and TypeMethodDescriptionassignGridConnection(com.scaleout.client.GridConnection connection) Assigns aGridConnectionto the client.assignSerialization(com.scaleout.client.caching.CacheSerializer<O> serializer, com.scaleout.client.caching.CacheDeserializer<O> deserializer) Assigns the serializer/deserializer call backs used by the underlying cache.build()Builds aMsgModuleClient.Builds aMsgModuleClientfor a local, single host SOSS deployment.
-
Constructor Details
-
MsgModuleClientBuilder
Instantiate this builder.- Parameters:
moduleName- the moduleName.sossObjectType- the SOSS object type.
-
-
Method Details
-
assignGridConnection
public MsgModuleClientBuilder<O> assignGridConnection(com.scaleout.client.GridConnection connection) Assigns aGridConnectionto the client.- Parameters:
connection- theGridConnection.- Returns:
- this
MsgModuleClientBuilder.
-
assignSerialization
public MsgModuleClientBuilder<O> assignSerialization(com.scaleout.client.caching.CacheSerializer<O> serializer, com.scaleout.client.caching.CacheDeserializer<O> deserializer) Assigns the serializer/deserializer call backs used by the underlying cache. These serializer callbacks must match the serialization callbacks of the MsgModule.- Parameters:
serializer- the state objectCacheSerializer.deserializer- the state objectCacheDeserializer.- Returns:
- this
MsgModuleClientBuilder.
-
build
Builds aMsgModuleClient.- Returns:
- the
MsgModuleClient.
-
buildLocalDevelopmentClient
Builds aMsgModuleClientfor a local, single host SOSS deployment.- Returns:
- the
MsgModuleClient.
-