Package org.redisson.liveobject.core
Class LiveObjectInterceptor
java.lang.Object
org.redisson.liveobject.core.LiveObjectInterceptor
- Author:
- Rui Gu (https://github.com/jackygurui), Nikita Koksharov
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfacestatic interface -
Constructor Summary
ConstructorsConstructorDescriptionLiveObjectInterceptor(CommandAsyncExecutor commandExecutor, RedissonLiveObjectService service, Class<?> entityClass, String idFieldName) -
Method Summary
Modifier and TypeMethodDescriptionintercept(Method method, Object[] args, Object me, Object id, LiveObjectInterceptor.Setter idSetter, LiveObjectInterceptor.Getter idGetter, RMap<String, ?> map, LiveObjectInterceptor.Setter mapSetter, LiveObjectInterceptor.Getter mapGetter)
-
Constructor Details
-
LiveObjectInterceptor
public LiveObjectInterceptor(CommandAsyncExecutor commandExecutor, RedissonLiveObjectService service, Class<?> entityClass, String idFieldName)
-
-
Method Details
-
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
-