Package org.redisson.liveobject.core
Class LiveObjectInterceptor
- java.lang.Object
-
- org.redisson.liveobject.core.LiveObjectInterceptor
-
public class LiveObjectInterceptor extends Object
- Author:
- Rui Gu (https://github.com/jackygurui), Nikita Koksharov
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
LiveObjectInterceptor.Getter
static interface
LiveObjectInterceptor.Setter
-
Constructor Summary
Constructors Constructor Description LiveObjectInterceptor(CommandAsyncExecutor commandExecutor, RedissonLiveObjectService service, Class<?> entityClass, String idFieldName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
intercept(Method method, Object[] args, Object me, Object id, LiveObjectInterceptor.Setter idSetter, LiveObjectInterceptor.Getter idGetter, RMap<String,?> map, LiveObjectInterceptor.Setter mapSetter, LiveObjectInterceptor.Getter mapGetter)
-
-
-
Constructor Detail
-
LiveObjectInterceptor
public LiveObjectInterceptor(CommandAsyncExecutor commandExecutor, RedissonLiveObjectService service, Class<?> entityClass, String idFieldName)
-
-
Method Detail
-
intercept
@RuntimeType public Object intercept(@Origin Method method, @AllArguments Object[] args, @This Object me, @FieldValue("liveObjectId") Object id, @FieldProxy("liveObjectId") LiveObjectInterceptor.Setter idSetter, @FieldProxy("liveObjectId") LiveObjectInterceptor.Getter idGetter, @FieldValue("liveObjectLiveMap") RMap<String,?> map, @FieldProxy("liveObjectLiveMap") LiveObjectInterceptor.Setter mapSetter, @FieldProxy("liveObjectLiveMap") LiveObjectInterceptor.Getter mapGetter) throws Throwable
- Throws:
Throwable
-
-