Skip to content

Instantly share code, notes, and snippets.

@eiennohito
Created May 30, 2016 06:55
Show Gist options
  • Save eiennohito/0b9f20efa976282a6b507e388ba387ca to your computer and use it in GitHub Desktop.
Save eiennohito/0b9f20efa976282a6b507e388ba387ca to your computer and use it in GitHub Desktop.
package io.grpc.examples.header;
import io.grpc.ForwardingServerCall;
import io.grpc.Metadata;
import io.grpc.ServerCall;
/**
* @author eiennohito
* @since 2016/05/30
*/
public class BCall<RType> extends ForwardingServerCall<RType> {
private final ServerCall<RType> call;
public BCall(ServerCall<RType> call) {
this.call = call;
}
@Override
protected ServerCall<RType> delegate() {
return call;
}
@Override
public void sendHeaders(Metadata headers) {
super.sendHeaders(headers);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment