- java.lang.Object
-
- io.smallrye.mutiny.ItemWithContext<T>
-
- Type Parameters:
T- the iten type
public final class ItemWithContext<T> extends java.lang.ObjectModels an item flowing along a Mutiny pipeline with its subscriber context attached.- See Also:
Uni.attachContext(),Multi.attachContext()
-
-
Constructor Summary
Constructors Constructor Description ItemWithContext(Context context, T item)Creates a new item with a context.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Contextcontext()Gives the context.booleanequals(java.lang.Object o)Tget()Gives the item.inthashCode()java.lang.StringtoString()
-
-
-
Method Detail
-
context
public Context context()
Gives the context.- Returns:
- the context
-
get
public T get()
Gives the item.- Returns:
- the item
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-