|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.infinispan.marshall.MarshallableTypeHints
public final class MarshallableTypeHints
Class providing hints about marshallable types, such as whether a particular type is marshallable or not, or an accurate approach to the serialized size of a particular type.
Constructor Summary | |
---|---|
MarshallableTypeHints()
|
Method Summary | |
---|---|
void |
clear()
Clear the cached marshallable type hints. |
BufferSizePredictor |
getBufferSizePredictor(Class<?> type)
Get the serialized form size predictor for a particular type. |
boolean |
isKnownMarshallable(Class<?> type)
Returns whether the hint on whether a particular type is marshallable or not is available. |
boolean |
isMarshallable(Class<?> type)
Returns whether a type can be serialized. |
void |
markMarshallable(Class<?> type,
boolean isMarshallable)
Marks a particular type as being marshallable or not being not marshallable. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MarshallableTypeHints()
Method Detail |
---|
public BufferSizePredictor getBufferSizePredictor(Class<?> type)
type
- Marshallable type for which serialized form size will be predicted
BufferSizePredictor
public boolean isKnownMarshallable(Class<?> type)
type
- Marshallable type to check whether an attempt to mark it as
marshallable has been made.
public boolean isMarshallable(Class<?> type)
markMarshallable(Class, boolean)
method earlier,
passing true as parameter. If a type has not yet been marked as
marshallable, this method will return false.
public void markMarshallable(Class<?> type, boolean isMarshallable)
type
- Class to mark as serializable or non-serializableisMarshallable
- Whether the type can be marshalled or not.public void clear()
|
--> | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |