Skip to content

Commit

Permalink
additional documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
aludwiko committed Jun 27, 2023
1 parent c5943ba commit 8a201cf
Show file tree
Hide file tree
Showing 7 changed files with 399 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -53,90 +53,156 @@ public ActionCallBuilder(KalixClient kalixClient) {
this.kalixClient = kalixClient;
}

/**
* Pass in Action method reference annotated as a REST endpoint, e.g. <code>MyAction::create</code>
*/
public <T, R> DeferredCall<Any, R> call(Function<T, Action.Effect<R>> methodRef) {
return ComponentCall.noParams(kalixClient, methodRef, Optional.empty());
}

/**
* Pass in Action method reference annotated as a REST endpoint, e.g. <code>MyAction::create</code>
*/
public <T, A1, R> ComponentCall<A1, R> call(Function2<T, A1, Action.Effect<R>> methodRef) {
return new ComponentCall<>(kalixClient, methodRef, Optional.empty());
}

/**
* Pass in Action method reference annotated as a REST endpoint, e.g. <code>MyAction::create</code>
*/
public <T, A1, A2, R> ComponentCall2<A1, A2, R> call(Function3<T, A1, A2, Action.Effect<R>> methodRef) {
return new ComponentCall2<>(kalixClient, methodRef, Optional.empty());
}

/**
* Pass in Action method reference annotated as a REST endpoint, e.g. <code>MyAction::create</code>
*/
public <T, A1, A2, A3, R> ComponentCall3<A1, A2, A3, R> call(Function4<T, A1, A2, A3, Action.Effect<R>> methodRef) {
return new ComponentCall3<>(kalixClient, methodRef, Optional.empty());
}

/**
* Pass in Action method reference annotated as a REST endpoint, e.g. <code>MyAction::create</code>
*/
public <T, A1, A2, A3, A4, R> ComponentCall4<A1, A2, A3, A4, R> call(Function5<T, A1, A2, A3, A4, Action.Effect<R>> methodRef) {
return new ComponentCall4<>(kalixClient, methodRef, Optional.empty());
}

/**
* Pass in Action method reference annotated as a REST endpoint, e.g. <code>MyAction::create</code>
*/
public <T, A1, A2, A3, A4, A5, R> ComponentCall5<A1, A2, A3, A4, A5, R> call(Function6<T, A1, A2, A3, A4, A5, Action.Effect<R>> methodRef) {
return new ComponentCall5<>(kalixClient, methodRef, Optional.empty());
}

/**
* Pass in Action method reference annotated as a REST endpoint, e.g. <code>MyAction::create</code>
*/
public <T, A1, A2, A3, A4, A5, A6, R> ComponentCall6<A1, A2, A3, A4, A5, A6, R> call(Function7<T, A1, A2, A3, A4, A5, A6, Action.Effect<R>> methodRef) {
return new ComponentCall6<>(kalixClient, methodRef, Optional.empty());
}

/**
* Pass in Action method reference annotated as a REST endpoint, e.g. <code>MyAction::create</code>
*/
public <T, A1, A2, A3, A4, A5, A6, A7, R> ComponentCall7<A1, A2, A3, A4, A5, A6, A7, R> call(Function8<T, A1, A2, A3, A4, A5, A6, A7, Action.Effect<R>> methodRef) {
return new ComponentCall7<>(kalixClient, methodRef, Optional.empty());
}

/**
* Pass in Action method reference annotated as a REST endpoint, e.g. <code>MyAction::create</code>
*/
public <T, A1, A2, A3, A4, A5, A6, A7, A8, R> ComponentCall8<A1, A2, A3, A4, A5, A6, A7, A8, R> call(Function9<T, A1, A2, A3, A4, A5, A6, A7, A8, Action.Effect<R>> methodRef) {
return new ComponentCall8<>(kalixClient, methodRef, Optional.empty());
}

/**
* Pass in Action method reference annotated as a REST endpoint, e.g. <code>MyAction::create</code>
*/
public <T, A1, A2, A3, A4, A5, A6, A7, A8, A9, R> ComponentCall9<A1, A2, A3, A4, A5, A6, A7, A8, A9, R> call(Function10<T, A1, A2, A3, A4, A5, A6, A7, A8, A9, Action.Effect<R>> methodRef) {
return new ComponentCall9<>(kalixClient, methodRef, Optional.empty());
}

/**
* Pass in Action method reference annotated as a REST endpoint, e.g. <code>MyAction::create</code>
*/
public <T, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, R> ComponentCall10<A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, R> call(Function11<T, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, Action.Effect<R>> methodRef) {
return new ComponentCall10<>(kalixClient, methodRef, Optional.empty());
}

/**
* Pass in Action method reference annotated as a REST endpoint, e.g. <code>MyAction::create</code>
*/
public <T, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, R> ComponentCall11<A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, R> call(Function12<T, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, Action.Effect<R>> methodRef) {
return new ComponentCall11<>(kalixClient, methodRef, Optional.empty());
}

/**
* Pass in Action method reference annotated as a REST endpoint, e.g. <code>MyAction::create</code>
*/
public <T, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, R> ComponentCall12<A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, R> call(Function13<T, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, Action.Effect<R>> methodRef) {
return new ComponentCall12<>(kalixClient, methodRef, Optional.empty());
}

/**
* Pass in Action method reference annotated as a REST endpoint, e.g. <code>MyAction::create</code>
*/
public <T, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, R> ComponentCall13<A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, R> call(Function14<T, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, Action.Effect<R>> methodRef) {
return new ComponentCall13<>(kalixClient, methodRef, Optional.empty());
}

/**
* Pass in Action method reference annotated as a REST endpoint, e.g. <code>MyAction::create</code>
*/
public <T, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, R> ComponentCall14<A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, R> call(Function15<T, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, Action.Effect<R>> methodRef) {
return new ComponentCall14<>(kalixClient, methodRef, Optional.empty());
}

/**
* Pass in Action method reference annotated as a REST endpoint, e.g. <code>MyAction::create</code>
*/
public <T, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, R> ComponentCall15<A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, R> call(Function16<T, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, Action.Effect<R>> methodRef) {
return new ComponentCall15<>(kalixClient, methodRef, Optional.empty());
}

/**
* Pass in Action method reference annotated as a REST endpoint, e.g. <code>MyAction::create</code>
*/
public <T, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16, R> ComponentCall16<A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16, R> call(Function17<T, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16, Action.Effect<R>> methodRef) {
return new ComponentCall16<>(kalixClient, methodRef, Optional.empty());
}

/**
* Pass in Action method reference annotated as a REST endpoint, e.g. <code>MyAction::create</code>
*/
public <T, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16, A17, R> ComponentCall17<A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16, A17, R> call(Function18<T, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16, A17, Action.Effect<R>> methodRef) {
return new ComponentCall17<>(kalixClient, methodRef, Optional.empty());
}

/**
* Pass in Action method reference annotated as a REST endpoint, e.g. <code>MyAction::create</code>
*/
public <T, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16, A17, A18, R> ComponentCall18<A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16, A17, A18, R> call(Function19<T, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16, A17, A18, Action.Effect<R>> methodRef) {
return new ComponentCall18<>(kalixClient, methodRef, Optional.empty());
}

/**
* Pass in Action method reference annotated as a REST endpoint, e.g. <code>MyAction::create</code>
*/
public <T, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16, A17, A18, A19, R> ComponentCall19<A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16, A17, A18, A19, R> call(Function20<T, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16, A17, A18, A19, Action.Effect<R>> methodRef) {
return new ComponentCall19<>(kalixClient, methodRef, Optional.empty());
}

/**
* Pass in Action method reference annotated as a REST endpoint, e.g. <code>MyAction::create</code>
*/
public <T, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16, A17, A18, A19, A20, R> ComponentCall20<A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16, A17, A18, A19, A20, R> call(Function21<T, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16, A17, A18, A19, A20, Action.Effect<R>> methodRef) {
return new ComponentCall20<>(kalixClient, methodRef, Optional.empty());
}

/**
* Pass in Action method reference annotated as a REST endpoint, e.g. <code>MyAction::create</code>
*/
public <T, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16, A17, A18, A19, A20, A21, R> ComponentCall21<A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16, A17, A18, A19, A20, A21, R> call(Function22<T, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16, A17, A18, A19, A20, A21, Action.Effect<R>> methodRef) {
return new ComponentCall21<>(kalixClient, methodRef, Optional.empty());
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,90 +60,156 @@ public EventSourcedEntityCallBuilder(KalixClient kalixClient) {
this.entityId = Optional.empty();
}

/**
* Pass in Event Sourced Entity method reference annotated as a REST endpoint, e.g. <code>UserEntity::create</code>
*/
public <T, R> DeferredCall<Any, R> call(Function<T, EventSourcedEntity.Effect<R>> methodRef) {
return ComponentCall.noParams(kalixClient, methodRef, entityId);
}

/**
* Pass in Event Sourced Entity method reference annotated as a REST endpoint, e.g. <code>UserEntity::create</code>
*/
public <T, A1, R> ComponentCall<A1, R> call(Function2<T, A1, EventSourcedEntity.Effect<R>> methodRef) {
return new ComponentCall<>(kalixClient, methodRef, entityId);
}

/**
* Pass in Event Sourced Entity method reference annotated as a REST endpoint, e.g. <code>UserEntity::create</code>
*/
public <T, A1, A2, R> ComponentCall2<A1, A2, R> call(Function3<T, A1, A2, EventSourcedEntity.Effect<R>> methodRef) {
return new ComponentCall2<>(kalixClient, methodRef, entityId);
}

/**
* Pass in Event Sourced Entity method reference annotated as a REST endpoint, e.g. <code>UserEntity::create</code>
*/
public <T, A1, A2, A3, R> ComponentCall3<A1, A2, A3, R> call(Function4<T, A1, A2, A3, EventSourcedEntity.Effect<R>> methodRef) {
return new ComponentCall3<>(kalixClient, methodRef, Optional.empty());
}

/**
* Pass in Event Sourced Entity method reference annotated as a REST endpoint, e.g. <code>UserEntity::create</code>
*/
public <T, A1, A2, A3, A4, R> ComponentCall4<A1, A2, A3, A4, R> call(Function5<T, A1, A2, A3, A4, EventSourcedEntity.Effect<R>> methodRef) {
return new ComponentCall4<>(kalixClient, methodRef, Optional.empty());
}

/**
* Pass in Event Sourced Entity method reference annotated as a REST endpoint, e.g. <code>UserEntity::create</code>
*/
public <T, A1, A2, A3, A4, A5, R> ComponentCall5<A1, A2, A3, A4, A5, R> call(Function6<T, A1, A2, A3, A4, A5, EventSourcedEntity.Effect<R>> methodRef) {
return new ComponentCall5<>(kalixClient, methodRef, Optional.empty());
}

/**
* Pass in Event Sourced Entity method reference annotated as a REST endpoint, e.g. <code>UserEntity::create</code>
*/
public <T, A1, A2, A3, A4, A5, A6, R> ComponentCall6<A1, A2, A3, A4, A5, A6, R> call(Function7<T, A1, A2, A3, A4, A5, A6, EventSourcedEntity.Effect<R>> methodRef) {
return new ComponentCall6<>(kalixClient, methodRef, Optional.empty());
}

/**
* Pass in Event Sourced Entity method reference annotated as a REST endpoint, e.g. <code>UserEntity::create</code>
*/
public <T, A1, A2, A3, A4, A5, A6, A7, R> ComponentCall7<A1, A2, A3, A4, A5, A6, A7, R> call(Function8<T, A1, A2, A3, A4, A5, A6, A7, EventSourcedEntity.Effect<R>> methodRef) {
return new ComponentCall7<>(kalixClient, methodRef, Optional.empty());
}

/**
* Pass in Event Sourced Entity method reference annotated as a REST endpoint, e.g. <code>UserEntity::create</code>
*/
public <T, A1, A2, A3, A4, A5, A6, A7, A8, R> ComponentCall8<A1, A2, A3, A4, A5, A6, A7, A8, R> call(Function9<T, A1, A2, A3, A4, A5, A6, A7, A8, EventSourcedEntity.Effect<R>> methodRef) {
return new ComponentCall8<>(kalixClient, methodRef, Optional.empty());
}

/**
* Pass in Event Sourced Entity method reference annotated as a REST endpoint, e.g. <code>UserEntity::create</code>
*/
public <T, A1, A2, A3, A4, A5, A6, A7, A8, A9, R> ComponentCall9<A1, A2, A3, A4, A5, A6, A7, A8, A9, R> call(Function10<T, A1, A2, A3, A4, A5, A6, A7, A8, A9, EventSourcedEntity.Effect<R>> methodRef) {
return new ComponentCall9<>(kalixClient, methodRef, Optional.empty());
}

/**
* Pass in Event Sourced Entity method reference annotated as a REST endpoint, e.g. <code>UserEntity::create</code>
*/
public <T, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, R> ComponentCall10<A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, R> call(Function11<T, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, EventSourcedEntity.Effect<R>> methodRef) {
return new ComponentCall10<>(kalixClient, methodRef, Optional.empty());
}

/**
* Pass in Event Sourced Entity method reference annotated as a REST endpoint, e.g. <code>UserEntity::create</code>
*/
public <T, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, R> ComponentCall11<A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, R> call(Function12<T, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, EventSourcedEntity.Effect<R>> methodRef) {
return new ComponentCall11<>(kalixClient, methodRef, Optional.empty());
}

/**
* Pass in Event Sourced Entity method reference annotated as a REST endpoint, e.g. <code>UserEntity::create</code>
*/
public <T, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, R> ComponentCall12<A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, R> call(Function13<T, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, EventSourcedEntity.Effect<R>> methodRef) {
return new ComponentCall12<>(kalixClient, methodRef, Optional.empty());
}

/**
* Pass in Event Sourced Entity method reference annotated as a REST endpoint, e.g. <code>UserEntity::create</code>
*/
public <T, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, R> ComponentCall13<A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, R> call(Function14<T, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, EventSourcedEntity.Effect<R>> methodRef) {
return new ComponentCall13<>(kalixClient, methodRef, Optional.empty());
}

/**
* Pass in Event Sourced Entity method reference annotated as a REST endpoint, e.g. <code>UserEntity::create</code>
*/
public <T, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, R> ComponentCall14<A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, R> call(Function15<T, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, EventSourcedEntity.Effect<R>> methodRef) {
return new ComponentCall14<>(kalixClient, methodRef, Optional.empty());
}

/**
* Pass in Event Sourced Entity method reference annotated as a REST endpoint, e.g. <code>UserEntity::create</code>
*/
public <T, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, R> ComponentCall15<A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, R> call(Function16<T, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, EventSourcedEntity.Effect<R>> methodRef) {
return new ComponentCall15<>(kalixClient, methodRef, Optional.empty());
}

/**
* Pass in Event Sourced Entity method reference annotated as a REST endpoint, e.g. <code>UserEntity::create</code>
*/
public <T, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16, R> ComponentCall16<A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16, R> call(Function17<T, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16, EventSourcedEntity.Effect<R>> methodRef) {
return new ComponentCall16<>(kalixClient, methodRef, Optional.empty());
}

/**
* Pass in Event Sourced Entity method reference annotated as a REST endpoint, e.g. <code>UserEntity::create</code>
*/
public <T, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16, A17, R> ComponentCall17<A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16, A17, R> call(Function18<T, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16, A17, EventSourcedEntity.Effect<R>> methodRef) {
return new ComponentCall17<>(kalixClient, methodRef, Optional.empty());
}

/**
* Pass in Event Sourced Entity method reference annotated as a REST endpoint, e.g. <code>UserEntity::create</code>
*/
public <T, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16, A17, A18, R> ComponentCall18<A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16, A17, A18, R> call(Function19<T, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16, A17, A18, EventSourcedEntity.Effect<R>> methodRef) {
return new ComponentCall18<>(kalixClient, methodRef, Optional.empty());
}

/**
* Pass in Event Sourced Entity method reference annotated as a REST endpoint, e.g. <code>UserEntity::create</code>
*/
public <T, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16, A17, A18, A19, R> ComponentCall19<A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16, A17, A18, A19, R> call(Function20<T, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16, A17, A18, A19, EventSourcedEntity.Effect<R>> methodRef) {
return new ComponentCall19<>(kalixClient, methodRef, Optional.empty());
}

/**
* Pass in Event Sourced Entity method reference annotated as a REST endpoint, e.g. <code>UserEntity::create</code>
*/
public <T, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16, A17, A18, A19, A20, R> ComponentCall20<A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16, A17, A18, A19, A20, R> call(Function21<T, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16, A17, A18, A19, A20, EventSourcedEntity.Effect<R>> methodRef) {
return new ComponentCall20<>(kalixClient, methodRef, Optional.empty());
}

/**
* Pass in Event Sourced Entity method reference annotated as a REST endpoint, e.g. <code>UserEntity::create</code>
*/
public <T, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16, A17, A18, A19, A20, A21, R> ComponentCall21<A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16, A17, A18, A19, A20, A21, R> call(Function22<T, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16, A17, A18, A19, A20, A21, EventSourcedEntity.Effect<R>> methodRef) {
return new ComponentCall21<>(kalixClient, methodRef, Optional.empty());
}
Expand Down
Loading

0 comments on commit 8a201cf

Please sign in to comment.