All Downloads are FREE. Search and download functionalities are using the official Maven repository.

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);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy