Skip to content

Instantly share code, notes, and snippets.

@schmee
Created September 10, 2019 08:17
Show Gist options
  • Save schmee/f91ad8ae7bc6e49f445ae9f0571d4ab2 to your computer and use it in GitHub Desktop.
Save schmee/f91ad8ae7bc6e49f445ae9f0571d4ab2 to your computer and use it in GitHub Desktop.
Finagle Java Client
package foo;
import com.twitter.finagle.Service;
import com.twitter.finagle.ServiceFactory;
import com.twitter.finagle.Stack;
import com.twitter.finagle.client.StdStackClient;
import com.twitter.finagle.client.Transporter;
import com.twitter.finagle.param.ClientAdmissionControlParams;
import com.twitter.finagle.param.ClientSessionParams;
import com.twitter.finagle.param.ClientTransportParams;
import com.twitter.finagle.param.SessionQualificationParams;
import com.twitter.finagle.transport.Transport;
import com.twitter.finagle.transport.TransportContext;
import java.net.SocketAddress;
public class FinagleClient extends StdStackClient<Request, Response, FinagleClient> {
@Override
public Transporter<Object, Object, TransportContext> newTransporter(
SocketAddress addr
) {
return null;
}
@Override
public Service<Request, Response> newDispatcher(Transport<Object, Object> transport) {
return null;
}
@Override
public FinagleClient copy1(
Stack<ServiceFactory<Request, Response>> stack, Stack.Params params
) {
return null;
}
@Override
public Stack<ServiceFactory<Request, Response>> stack() {
return null;
}
@Override
public Stack.Params params() {
return null;
}
@Override
public void com$twitter$finagle$param$WithClientAdmissionControl$_setter_$withAdmissionControl_$eq(
ClientAdmissionControlParams<FinagleClient> x$1
) {
}
@Override
public ClientAdmissionControlParams<FinagleClient> withAdmissionControl() {
return null;
}
@Override
public void com$twitter$finagle$param$WithClientSession$_setter_$withSession_$eq(ClientSessionParams<FinagleClient> x$1) {
}
@Override
public ClientSessionParams<FinagleClient> withSession() {
return null;
}
@Override
public void com$twitter$finagle$param$WithClientTransport$_setter_$withTransport_$eq(ClientTransportParams<FinagleClient> x$1) {
}
@Override
public ClientTransportParams<FinagleClient> withTransport() {
return null;
}
@Override
public void com$twitter$finagle$param$WithSessionQualifier$_setter_$withSessionQualifier_$eq(
SessionQualificationParams<FinagleClient> x$1
) {
}
@Override
public SessionQualificationParams<FinagleClient> withSessionQualifier() {
return null;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment