-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Cache a placeholder instead of a wrapper Uni
- Loading branch information
Showing
3 changed files
with
19 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 4 additions & 12 deletions
16
extensions/cache/runtime/src/main/java/io/quarkus/cache/runtime/UnresolvedUniValue.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,8 @@ | ||
package io.quarkus.cache.runtime; | ||
|
||
import io.smallrye.mutiny.Uni; | ||
|
||
/** | ||
* This value acts as a placeholder in the cache. It will be eventually replaced by the item emitted by the | ||
* {@link io.smallrye.mutiny.Uni Uni} when it has been resolved. | ||
*/ | ||
public class UnresolvedUniValue { | ||
|
||
private final Uni<Object> uni; | ||
|
||
public UnresolvedUniValue(Uni<Object> uni) { | ||
this.uni = uni; | ||
} | ||
|
||
public Uni<Object> getUni() { | ||
return uni; | ||
} | ||
} |