org.jetlinks.rule.engine.api.rpc.DefaultRpcDefinition Maven / Gradle / Ivy
package org.jetlinks.rule.engine.api.rpc;
import lombok.AllArgsConstructor;
import org.jetlinks.rule.engine.api.codec.Codec;
@AllArgsConstructor
public class DefaultRpcDefinition implements RpcDefinition {
private final String address;
private final Codec requestCodec;
private final Codec responseCodec;
@Override
public String getAddress() {
return address;
}
@Override
public Codec requestCodec() {
return requestCodec;
}
@Override
public Codec responseCodec() {
return responseCodec;
}
}