use getHook() accessor
This commit is contained in:
parent
c01228c31c
commit
6d082a71b5
2 changed files with 6 additions and 6 deletions
|
@ -6,18 +6,18 @@ public class CallContext<Params, Results> {
|
|||
|
||||
private final FromPointerReader<Params> params;
|
||||
private final FromPointerBuilder<Results> results;
|
||||
final CallContextHook hook;
|
||||
private final CallContextHook hook;
|
||||
|
||||
public CallContext(FromPointerReader<Params> params,
|
||||
FromPointerBuilder<Results> results,
|
||||
CallContextHook hook) {
|
||||
this.hook = hook;
|
||||
this.params = params;
|
||||
this.results = results;
|
||||
this.hook = hook;
|
||||
}
|
||||
|
||||
public final Params getParams() {
|
||||
return hook.getParams().getAs(params);
|
||||
return this.hook.getParams().getAs(params);
|
||||
}
|
||||
|
||||
public final void releaseParams() {
|
||||
|
@ -33,7 +33,7 @@ public class CallContext<Params, Results> {
|
|||
}
|
||||
|
||||
public final <SubParams, Results> CompletableFuture<?> tailCall(Request<SubParams, Results> tailRequest) {
|
||||
return hook.tailCall(tailRequest.getHook());
|
||||
return this.hook.tailCall(tailRequest.getHook());
|
||||
}
|
||||
|
||||
public final void allowCancellation() {
|
||||
|
|
|
@ -199,13 +199,13 @@ public final class Capability {
|
|||
FromPointerReader<Params> paramsFactory,
|
||||
FromPointerBuilder<Results> resultsFactory,
|
||||
CallContext<AnyPointer.Reader, AnyPointer.Builder> typeless) {
|
||||
return new CallContext<>(paramsFactory, resultsFactory, typeless.hook);
|
||||
return new CallContext<>(paramsFactory, resultsFactory, typeless.getHook());
|
||||
}
|
||||
|
||||
protected static <Params> StreamingCallContext<Params> internalGetTypedStreamingContext(
|
||||
FromPointerReader<Params> paramsFactory,
|
||||
CallContext<AnyPointer.Reader, AnyPointer.Builder> typeless) {
|
||||
return new StreamingCallContext<>(paramsFactory, typeless.hook);
|
||||
return new StreamingCallContext<>(paramsFactory, typeless.getHook());
|
||||
}
|
||||
|
||||
protected abstract DispatchCallResult dispatchCall(
|
||||
|
|
Loading…
Reference in a new issue