|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.ehcache.impl.internal.spi.serialization.DefaultSerializationProvider
public class DefaultSerializationProvider
Field Summary | |
---|---|
protected ConcurrentWeakIdentityHashMap<Serializer<?>,java.util.concurrent.atomic.AtomicInteger> |
providedVsCount
|
Constructor Summary | |
---|---|
DefaultSerializationProvider(DefaultSerializationProviderConfiguration configuration)
|
Method Summary | ||
---|---|---|
|
createKeySerializer(java.lang.Class<T> clazz,
java.lang.ClassLoader classLoader,
ServiceConfiguration<?>... configs)
Creates a key Serializer with the given parameters. |
|
|
createValueSerializer(java.lang.Class<T> clazz,
java.lang.ClassLoader classLoader,
ServiceConfiguration<?>... configs)
Creates a value Serializer with the given parameters. |
|
void |
releaseSerializer(Serializer<?> serializer)
Releases the given Serializer instance |
|
void |
start(ServiceProvider serviceProvider)
Start this service using the provided configuration and ServiceProvider . |
|
void |
stop()
Stops this service. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected final ConcurrentWeakIdentityHashMap<Serializer<?>,java.util.concurrent.atomic.AtomicInteger> providedVsCount
Constructor Detail |
---|
public DefaultSerializationProvider(DefaultSerializationProviderConfiguration configuration)
Method Detail |
---|
public <T> Serializer<T> createKeySerializer(java.lang.Class<T> clazz, java.lang.ClassLoader classLoader, ServiceConfiguration<?>... configs) throws UnsupportedTypeException
SerializationProvider
Serializer
with the given parameters.
createKeySerializer
in interface SerializationProvider
T
- the type serialized to serialize to/fromclazz
- the class of the type to serialize to/fromclassLoader
- the classloader to useconfigs
- specific configuration
Serializer
instance
UnsupportedTypeException
- if a serializer cannot be created for the given typepublic <T> Serializer<T> createValueSerializer(java.lang.Class<T> clazz, java.lang.ClassLoader classLoader, ServiceConfiguration<?>... configs) throws UnsupportedTypeException
SerializationProvider
Serializer
with the given parameters.
createValueSerializer
in interface SerializationProvider
T
- the type serialized to serialize to/fromclazz
- the class of the type to serialize to/fromclassLoader
- the classloader to useconfigs
- specific configuration
Serializer
instance
UnsupportedTypeException
- if a serializer cannot be created for the given typepublic void releaseSerializer(Serializer<?> serializer) throws java.io.IOException
SerializationProvider
Serializer
instance
releaseSerializer
in interface SerializationProvider
serializer
- the serializer to be released
java.io.IOException
public void start(ServiceProvider serviceProvider)
Service
ServiceProvider
.
The goal of the service provider is to allow a service to use other services.
start
in interface Service
serviceProvider
- the service provider.public void stop()
Service
stop
in interface Service
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |