Class MsgModuleClientBuilder<O>

java.lang.Object
com.scaleoutsoftware.modules.client.MsgModuleClientBuilder<O>
Type Parameters:
O - the type of the SOSS object.

public class MsgModuleClientBuilder<O> extends Object
The MsgModuleClientBuilder is used to instantiate a MsgModuleClient
  • Constructor Details

    • MsgModuleClientBuilder

      public MsgModuleClientBuilder(String moduleName, Type sossObjectType)
      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 a GridConnection to the client.
      Parameters:
      connection - the GridConnection.
      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 object CacheSerializer.
      deserializer - the state object CacheDeserializer.
      Returns:
      this MsgModuleClientBuilder.
    • build

      public MsgModuleClient<O> build()
      Builds a MsgModuleClient.
      Returns:
      the MsgModuleClient.
    • buildLocalDevelopmentClient

      public MsgModuleClient<O> buildLocalDevelopmentClient()
      Builds a MsgModuleClient for a local, single host SOSS deployment.
      Returns:
      the MsgModuleClient.