Example usage for org.springframework.data.mapping.model MutablePersistentEntity getType

List of usage examples for org.springframework.data.mapping.model MutablePersistentEntity getType

Introduction

In this page you can find the example usage for org.springframework.data.mapping.model MutablePersistentEntity getType.

Prototype

Class<T> getType();

Source Link

Document

Returns the resolved Java type of this entity.

Usage

From source file:com.turbospaces.offmemory.IndexManager.java

@SuppressWarnings({ "javadoc" })
public IndexManager(final MutablePersistentEntity mutablePersistentEntity,
        final SpaceConfiguration configuration) {
    this.configuration = configuration;
    bo = configuration.boFor(mutablePersistentEntity.getType());
    idCache = new OffHeapLinearProbingSet(configuration.getMemoryManager(), bo.getCapacityRestriction(),
            configuration.getCapacityRestriction(),
            (PropertiesSerializer) configuration.getKryo().getSerializer(mutablePersistentEntity.getType()),
            configuration.getListeningExecutorService());
}