org.infinispan.interceptors
Class MarshalledValueInterceptor
java.lang.Object
org.infinispan.commands.AbstractVisitor
org.infinispan.interceptors.base.CommandInterceptor
org.infinispan.interceptors.MarshalledValueInterceptor
- All Implemented Interfaces:
- Visitor
public class MarshalledValueInterceptor
- extends CommandInterceptor
Interceptor that handles the wrapping and unwrapping of cached data using MarshalledValue
s. Known "excluded" types are not wrapped/unwrapped, which at this time include
String
, Java primitives and their Object wrappers, as well as arrays of excluded types.
The MarshalledValue
wrapper handles lazy deserialization from byte array
representations.
- Since:
- 4.0
- Author:
- Manik Surtani (manik@jboss.org), Mircea.Markus@jboss.com
- See Also:
MarshalledValue
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MarshalledValueInterceptor
public MarshalledValueInterceptor()
visitPutMapCommand
public Object visitPutMapCommand(InvocationContext ctx,
PutMapCommand command)
throws Throwable
- Specified by:
visitPutMapCommand
in interface Visitor
- Overrides:
visitPutMapCommand
in class AbstractVisitor
- Throws:
Throwable
visitPutKeyValueCommand
public Object visitPutKeyValueCommand(InvocationContext ctx,
PutKeyValueCommand command)
throws Throwable
- Specified by:
visitPutKeyValueCommand
in interface Visitor
- Overrides:
visitPutKeyValueCommand
in class AbstractVisitor
- Throws:
Throwable
visitRemoveCommand
public Object visitRemoveCommand(InvocationContext ctx,
RemoveCommand command)
throws Throwable
- Specified by:
visitRemoveCommand
in interface Visitor
- Overrides:
visitRemoveCommand
in class AbstractVisitor
- Throws:
Throwable
visitGetKeyValueCommand
public Object visitGetKeyValueCommand(InvocationContext ctx,
GetKeyValueCommand command)
throws Throwable
- Specified by:
visitGetKeyValueCommand
in interface Visitor
- Overrides:
visitGetKeyValueCommand
in class AbstractVisitor
- Throws:
Throwable
wrapMap
protected Map wrapMap(Map<Object,Object> m,
Set<MarshalledValue> marshalledValues,
InvocationContext ctx)
throws NotSerializableException
- Throws:
NotSerializableException
createMarshalledValue
protected MarshalledValue createMarshalledValue(Object toWrap,
InvocationContext ctx)
throws NotSerializableException
- Throws:
NotSerializableException
Copyright © 2009 JBoss, a division of Red Hat. All Rights Reserved.