public Object deserialize(byte[] data) throws IOException, ClassNotFoundException { return deserialize(data, null); }
public String generateStringKeyFor(Object value) throws IOException { return new String(serialize(value)); }
public TerracottaHibernateCacheImpl(final String name, final Configuration config, final TimestampProvider timestamper) { this.regionName = name; this.useLocalKeyCache = DSO_ACTIVE && config.useLocalKeyCache(); this.localKeyCacheMaxsize = config.getLocalKeyMaxsize(); this.timestamper = timestamper; if (DSO_ACTIVE) { this.store = new CacheStoreDso<SerializedEntry>(config.useUnlockedRead(), config.getMapEvictorConfig()); this.serializationStrategy = new HibernateCacheDsoSerializationStrategy(); } else { this.store = new CacheStoreNoDso<SerializedEntry>(config.getMapEvictorConfig()); this.serializationStrategy = new NonDsoSerializationStrategy(); } this.cacheConfig = config; initialize(); }
public String generateStringKeyFor(Object value) throws IOException { return new String(serialize(value)); }
public Object deserialize(byte[] data) throws IOException, ClassNotFoundException { return deserialize(data, null); }
public String generateStringKeyFor(Object value) throws IOException { return new String(serialize(value)); }
public Object deserialize(byte[] data) throws IOException, ClassNotFoundException { return deserialize(data, null); }
public String generateStringKeyFor(Object value) throws IOException { return new String(serialize(value)); }
public Object deserialize(byte[] data) throws IOException, ClassNotFoundException { return deserialize(data, null); }