com.github.lontime.extredisson.consumer.RouteContext Maven / Gradle / Ivy
The newest version!
package com.github.lontime.extredisson.consumer;
import com.github.lontime.extredisson.common.EndpointMessageContext;
import lombok.Getter;
import lombok.Setter;
/**
* @author lontime
*/
@Getter
@Setter
public class RouteContext {
private EndpointMessageContext parent;
private String methodName;
private String serviceName;
public RouteContext(EndpointMessageContext parent, String serviceName, String methodName) {
this.parent = parent;
this.methodName = methodName;
this.serviceName = serviceName;
}
public static RouteContext create(EndpointMessageContext context, String serviceName, String methodName) {
return new RouteContext(context, serviceName, methodName);
}
}