this.loadBalancerDomain = loadBalancerDomain;
this.membershipManager = membershipManager;
}
public void addInterceptors(Channel channel) {
DomainFilterInterceptor dfi = new DomainFilterInterceptor();
dfi.setOptionFlag(TribesConstants.MEMBERSHIP_MSG_OPTION);
dfi.setDomain(loadBalancerDomain);
channel.addInterceptor(dfi);
if (log.isDebugEnabled()) {
log.debug("Added Domain Filter Interceptor");
}
}