com.j_spaces.javax.cache
Interface IConverter


public interface IConverter

The IConverter Interface provides conversion methods when using GigaSpaces Entry internal representation - The IGSEntry.
The IConverter allows you to convert the IGSEntry to the user original object format - that is JavaSpace Entry or Map API Object and vice versa.
IConverter used mainly with the CacheLoader and CacheStore interfaces via the AbstractCacheLoader.
You need to extend your CacheLoader/CacheStore implementation from the AbstractCacheLoader and use its getConvertor() method to retrieve IConverter instance.

Since:
5.1

Method Summary
 IGSEntry toIGSEntry(Object obj)
           
 Object toObject(IGSEntry entry)
           
 

Method Detail

toObject

Object toObject(IGSEntry entry)
Parameters:
entry - The IGSEntry representation of the Entry
Returns:
The original user Entry Object

toIGSEntry

IGSEntry toIGSEntry(Object obj)
Parameters:
obj - The object to convert to IGSEntry
Returns:
The converted object in IGSEntry format