public CacheContributingObjectReader(ClientTransaction transaction, IClientSlotCache
                                      slotCache, ByteArrayBuffer reader)
 {
     _reader      = reader;
     _transaction = transaction;
     _slotCache   = slotCache;
 }
		public CacheContributingObjectReader(ClientTransaction transaction, IClientSlotCache
			 slotCache, ByteArrayBuffer reader)
		{
			_reader = reader;
			_transaction = transaction;
			_slotCache = slotCache;
		}
Beispiel #3
0
 private void InitalizeClientSlotCache()
 {
     ConfigImpl.PrefetchSettingsChanged += new System.EventHandler <EventArgs>(new _IEventListener4_145
                                                                                   (this).OnEvent);
     if (ConfigImpl.PrefetchSlotCacheSize() > 0)
     {
         _clientSlotCache = new ClientSlotCacheImpl(this);
         return;
     }
     _clientSlotCache = new NullClientSlotCache();
 }
        private void WithCache(IProcedure4 procedure)
        {
            IClientSlotCache clientSlotCache = null;

            try
            {
                clientSlotCache = (IClientSlotCache)Reflection4.GetFieldValue(Container(), "_clientSlotCache"
                                                                              );
            }
            catch (ReflectException e)
            {
                Assert.Fail("Can't get field _clientSlotCache on  container. " + e.ToString());
            }
            procedure.Apply(clientSlotCache);
        }
		private void InitalizeClientSlotCache()
		{
			ConfigImpl.PrefetchSettingsChanged += new System.EventHandler<EventArgs>(new _IEventListener4_145
				(this).OnEvent);
			if (ConfigImpl.PrefetchSlotCacheSize() > 0)
			{
				_clientSlotCache = new ClientSlotCacheImpl(this);
				return;
			}
			_clientSlotCache = new NullClientSlotCache();
		}
		public virtual IFixedSizeIntIterator4 Unmarshall(ClientTransaction transaction, IClientSlotCache
			 slotCache, ByteArrayBuffer reader)
		{
			int size = reader.ReadInt();
			return new _IFixedSizeIntIterator4_34(size, reader);
		}
        public virtual IFixedSizeIntIterator4 Unmarshall(ClientTransaction transaction, IClientSlotCache
                                                         slotCache, ByteArrayBuffer reader)
        {
            int size = reader.ReadInt();

            return(new _IFixedSizeIntIterator4_34(size, reader));
        }
		public virtual IFixedSizeIntIterator4 Unmarshall(ClientTransaction transaction, IClientSlotCache
			 slotCache, ByteArrayBuffer reader)
		{
			return new CacheContributingObjectReader(transaction, slotCache, reader).Iterator
				();
		}
Beispiel #9
0
 public virtual IFixedSizeIntIterator4 Unmarshall(ClientTransaction transaction, IClientSlotCache
                                                  slotCache, ByteArrayBuffer reader)
 {
     return(new CacheContributingObjectReader(transaction, slotCache, reader).Iterator
                ());
 }