org.infinispan.context
Interface EntryLookup

All Known Subinterfaces:
InvocationContext, TxInvocationContext
All Known Implementing Classes:
AbstractInvocationContext, AbstractTxInvocationContext, ImmutableContext, InvocationContextFlagsOverride, LocalTxInvocationContext, NonTxInvocationContext, RemoteTxInvocationContext, SingleKeyNonTxInvocationContext, TransactionalInvocationContextFlagsOverride

public interface EntryLookup

Interface that can look up MVCC wrapped entries.

Since:
4.0
Author:
Manik Surtani (manik@jboss.org)

Method Summary
 void clearLookedUpEntries()
          Clears the collection of entries looked up
 Map<Object,CacheEntry> getLookedUpEntries()
          Retrieves a map of entries looked up within the current scope.
 CacheEntry lookupEntry(Object key)
          Retrieves an entry from the collection of looked up entries in the current scope.
 void putLookedUpEntries(Map<Object,CacheEntry> lookedUpEntries)
           
 void putLookedUpEntry(Object key, CacheEntry e)
          Puts an entry in the registry of looked up entries in the current scope.
 void removeLookedUpEntry(Object key)
           
 

Method Detail

lookupEntry

CacheEntry lookupEntry(Object key)
Retrieves an entry from the collection of looked up entries in the current scope.

Parameters:
key - key to look up
Returns:
an entry, or null if it cannot be found.

getLookedUpEntries

Map<Object,CacheEntry> getLookedUpEntries()
Retrieves a map of entries looked up within the current scope.

Returns:
a map of looked up entries.

putLookedUpEntry

void putLookedUpEntry(Object key,
                      CacheEntry e)
Puts an entry in the registry of looked up entries in the current scope.

Parameters:
key - key to store
e - entry to store

putLookedUpEntries

void putLookedUpEntries(Map<Object,CacheEntry> lookedUpEntries)

removeLookedUpEntry

void removeLookedUpEntry(Object key)

clearLookedUpEntries

void clearLookedUpEntries()
Clears the collection of entries looked up


-->

Copyright © 2012 JBoss, a division of Red Hat. All Rights Reserved.