/// <summary>
 /// Constructor with default serializer
 /// </summary>
 /// <param name="configuration"></param>
 public RemoteCacheManager(ClientConfig configuration)
 {
     this.config           = configuration;
     this.serializer       = new DefaultSerializer();
     this.codec            = new Codec();
     this.transportFactory = new TCPTransportFactory(this.config);
 }
Example #2
0
 /// <summary>
 /// The constructor of RemoteCacheImpl
 /// </summary>
 /// <param name="cacheManager">The CacheManager which holds the RemoteCache</param>
 /// <param name="configuration">Configuration of the client</param>
 /// <param name="cacheName">Pass the cachename if it differs from the default cache name</param>
 /// <param name="forceReturn">Pass ForceReturn value if it differs from the default falue</param>
 /// <param name="s">Serializer to be used to. Pass a custom serializer of DefaultSerializer</param>
 /// <param name="start">Boolean start</param>
 public RemoteCacheImpl(RemoteCacheManager cacheManager, ClientConfig configuration, String cacheName, bool forceReturn, Serializer s, TCPTransportFactory trans)
 {
     this.config     = configuration;
     this.serializer = s;
     this.codec      = new Codec();
     this.config.ForceReturnValue = forceReturn;
     this.config.CacheName        = cacheName;
     this.operationsFactory       = new OperationsFactory(cacheName, config.TopologyId, forceReturn, this.codec);
     this.transportFactory        = trans;
 }
Example #3
0
 /// <summary>
 ///  The constructor of RemoteCacheImpl
 /// </summary>
 /// <param name="cacheManager">The CacheManager which holds the RemoteCache</param>
 /// <param name="configuration">Configuration of the client</param>
 /// <param name="forceReturn">Pass ForceReturn value if it differs from the default falue</param>
 /// <param name="s">Serializer to be used to. Pass a custom serializer of DefaultSerializer</param>
 /// <param name="start">Boolean start</param>
 public RemoteCacheImpl(RemoteCacheManager cacheManager, ClientConfig configuration, bool forceReturn, Serializer s, TCPTransportFactory trans) :
     this(cacheManager, configuration, configuration.CacheName, forceReturn, s, trans)
 {
 }
Example #4
0
 /// <summary>
 /// The constructor of RemoteCacheImpl
 /// </summary>
 /// <param name="cacheManager">The CacheManager which holds the RemoteCache</param>
 /// <param name="configuration">Configuration of the client</param>
 /// <param name="cacheName">Pass the cachename if it differs from the default cache name</param>
 /// <param name="s">Serializer to be used to. Pass a custom serializer of DefaultSerializer</param>
 /// <param name="start">Boolean start</param>
 public RemoteCacheImpl(RemoteCacheManager cacheManager, ClientConfig configuration, String cacheName, Serializer s, TCPTransportFactory trans) :
     this(cacheManager, configuration, cacheName, configuration.ForceReturnValue, s, trans)
 {
 }