Beispiel #1
0
 public RemoteCacheSWIGGenImpl(SWIG.RemoteCacheManager manager, Infinispan.HotRod.SWIG.RemoteByteArrayCache cache, IMarshaller marshaller, IMarshaller argMarshaller, Infinispan.HotRod.Config.Configuration configuration = null)
 {
     this.manager       = manager;
     this.cache         = (RemoteByteArrayCache)cache;
     this.marshaller    = marshaller;
     this.argMarshaller = (argMarshaller != null) ? argMarshaller : new JBasicMarshaller();
     this.configuration = configuration;
 }
Beispiel #2
0
 public IRemoteCache <K, V> WithDataFormat(DataFormat df)
 {
     Infinispan.HotRod.SWIG.RemoteByteArrayCache c = cache.withDataFormat(df.df);
     return(new RemoteCacheSWIGGenImpl <K, V>(this.manager, c, (df.Marshaller != null) ? df.Marshaller : this.marshaller, (df.ArgMarshaller != null) ? df.ArgMarshaller : this.argMarshaller, this.configuration));
 }