@Deprecated public class KryoMessageConverter extends Object implements org.springframework.messaging.converter.SmartMessageConverter
Modifier and Type | Field and Description |
---|---|
static String |
KRYO_MIME_TYPE
Deprecated.
|
protected com.esotericsoftware.kryo.pool.KryoPool |
pool
Deprecated.
|
Constructor and Description |
---|
KryoMessageConverter(List<org.springframework.integration.codec.kryo.KryoRegistrar> kryoRegistrars,
boolean useReferences)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
protected boolean |
canConvertFrom(org.springframework.messaging.Message<?> message,
Class<?> targetClass)
Deprecated.
|
protected void |
configureKryoInstance(com.esotericsoftware.kryo.Kryo kryo)
Deprecated.
|
protected <T> T |
deserialize(byte[] bytes,
Class<T> type)
Deprecated.
|
protected <T> T |
deserialize(InputStream inputStream,
Class<T> type)
Deprecated.
|
Object |
fromMessage(org.springframework.messaging.Message<?> message,
Class<?> targetClass)
Deprecated.
|
Object |
fromMessage(org.springframework.messaging.Message<?> message,
Class<?> targetClass,
Object conversionHint)
Deprecated.
|
protected org.springframework.util.MimeType |
getDefaultContentType(Object payload)
Deprecated.
|
protected org.springframework.util.MimeType |
getMimeType(org.springframework.messaging.MessageHeaders headers)
Deprecated.
|
List<org.springframework.util.MimeType> |
getSupportedMimeTypes()
Deprecated.
|
protected org.springframework.util.MimeType |
mimeTypeFromObject(Object payload)
Deprecated.
|
protected byte[] |
serialize(Object payload)
Deprecated.
|
protected boolean |
supportsMimeType(org.springframework.messaging.MessageHeaders headers)
Deprecated.
|
org.springframework.messaging.Message<?> |
toMessage(Object payload,
org.springframework.messaging.MessageHeaders headers)
Deprecated.
|
org.springframework.messaging.Message<?> |
toMessage(Object payload,
org.springframework.messaging.MessageHeaders headers,
Object conversionHint)
Deprecated.
|
protected final com.esotericsoftware.kryo.pool.KryoPool pool
public static final String KRYO_MIME_TYPE
public KryoMessageConverter(List<org.springframework.integration.codec.kryo.KryoRegistrar> kryoRegistrars, boolean useReferences)
@Nullable public Object fromMessage(org.springframework.messaging.Message<?> message, Class<?> targetClass, @Nullable Object conversionHint)
fromMessage
in interface org.springframework.messaging.converter.SmartMessageConverter
@Nullable public org.springframework.messaging.Message<?> toMessage(Object payload, @Nullable org.springframework.messaging.MessageHeaders headers, @Nullable Object conversionHint)
toMessage
in interface org.springframework.messaging.converter.SmartMessageConverter
@Nullable protected org.springframework.util.MimeType getDefaultContentType(Object payload)
protected byte[] serialize(Object payload)
protected <T> T deserialize(byte[] bytes, Class<T> type) throws IOException
IOException
protected <T> T deserialize(InputStream inputStream, Class<T> type) throws IOException
IOException
protected void configureKryoInstance(com.esotericsoftware.kryo.Kryo kryo)
protected org.springframework.util.MimeType mimeTypeFromObject(Object payload)
protected boolean canConvertFrom(org.springframework.messaging.Message<?> message, Class<?> targetClass)
protected boolean supportsMimeType(@Nullable org.springframework.messaging.MessageHeaders headers)
@Nullable protected org.springframework.util.MimeType getMimeType(@Nullable org.springframework.messaging.MessageHeaders headers)
@Nullable public Object fromMessage(org.springframework.messaging.Message<?> message, Class<?> targetClass)
fromMessage
in interface org.springframework.messaging.converter.MessageConverter
@Nullable public org.springframework.messaging.Message<?> toMessage(Object payload, @Nullable org.springframework.messaging.MessageHeaders headers)
toMessage
in interface org.springframework.messaging.converter.MessageConverter
public List<org.springframework.util.MimeType> getSupportedMimeTypes()
Copyright © 2018 Pivotal Software, Inc.. All rights reserved.