org.bdware.doip.cluster.callback.DOIPInvocationCallback Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of doip-audit-tool Show documentation
Show all versions of doip-audit-tool Show documentation
doip audit tool developed by bdware
The newest version!
package org.bdware.doip.cluster.callback;
import org.bdware.doip.cluster.SpannableDoipMessage;
import org.bdware.doip.cluster.entity.DoipInvocation;
import org.bdware.doip.codec.doipMessage.DoipMessage;
import org.bdware.doip.endpoint.client.DoipMessageCallback;
public class DOIPInvocationCallback implements DoipMessageCallback {
String doid;
DoipMessage request;
DDOClusterDoipInvocationCallback collector;
public DOIPInvocationCallback(String doid, DoipMessage request, DDOClusterDoipInvocationCallback collector) {
this.doid = doid;
this.request = request;
this.collector = collector;
}
@Override
public void onResult(DoipMessage msg) {
collector.onResult(new DoipInvocation(doid, request, msg));
}
}