Package akka.stream.impl.fusing
Class LimitWeighted<T>
- java.lang.Object
-
- akka.stream.stage.GraphStageWithMaterializedValue<S,NotUsed>
-
- akka.stream.stage.GraphStage<FlowShape<T,T>>
-
- akka.stream.impl.fusing.GraphStages.SimpleLinearGraphStage<T>
-
- akka.stream.impl.fusing.LimitWeighted<T>
-
- All Implemented Interfaces:
Graph<FlowShape<T,T>,NotUsed>
,java.io.Serializable
,scala.Equals
,scala.Product
,scala.Serializable
public final class LimitWeighted<T> extends GraphStages.SimpleLinearGraphStage<T> implements scala.Product, scala.Serializable
INTERNAL API- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description LimitWeighted(long n, scala.Function1<T,java.lang.Object> costFn)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static <T> LimitWeighted<T>
apply(long n, scala.Function1<T,java.lang.Object> costFn)
boolean
canEqual(java.lang.Object x$1)
<T> LimitWeighted<T>
copy(long n, scala.Function1<T,java.lang.Object> costFn)
<T> long
copy$default$1()
<T> scala.Function1<T,java.lang.Object>
copy$default$2()
scala.Function1<T,java.lang.Object>
costFn()
SupervisedGraphStageLogic
createLogic(Attributes inheritedAttributes)
boolean
equals(java.lang.Object x$1)
int
hashCode()
Attributes
initialAttributes()
long
n()
int
productArity()
java.lang.Object
productElement(int x$1)
scala.collection.Iterator<java.lang.Object>
productIterator()
java.lang.String
productPrefix()
java.lang.String
toString()
static <T> scala.Option<scala.Tuple2<java.lang.Object,scala.Function1<T,java.lang.Object>>>
unapply(LimitWeighted<T> x$0)
-
Methods inherited from class akka.stream.impl.fusing.GraphStages.SimpleLinearGraphStage
in, out, shape
-
Methods inherited from class akka.stream.stage.GraphStage
createLogicAndMaterializedValue
-
Methods inherited from class akka.stream.stage.GraphStageWithMaterializedValue
createLogicAndMaterializedValue, traversalBuilder, withAttributes
-
-
-
-
Constructor Detail
-
LimitWeighted
public LimitWeighted(long n, scala.Function1<T,java.lang.Object> costFn)
-
-
Method Detail
-
apply
public static <T> LimitWeighted<T> apply(long n, scala.Function1<T,java.lang.Object> costFn)
-
unapply
public static <T> scala.Option<scala.Tuple2<java.lang.Object,scala.Function1<T,java.lang.Object>>> unapply(LimitWeighted<T> x$0)
-
n
public long n()
-
costFn
public scala.Function1<T,java.lang.Object> costFn()
-
initialAttributes
public Attributes initialAttributes()
- Overrides:
initialAttributes
in classGraphStageWithMaterializedValue<FlowShape<T,T>,NotUsed>
-
createLogic
public SupervisedGraphStageLogic createLogic(Attributes inheritedAttributes)
- Specified by:
createLogic
in classGraphStage<FlowShape<T,T>>
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
copy
public <T> LimitWeighted<T> copy(long n, scala.Function1<T,java.lang.Object> costFn)
-
copy$default$1
public <T> long copy$default$1()
-
copy$default$2
public <T> scala.Function1<T,java.lang.Object> copy$default$2()
-
productPrefix
public java.lang.String productPrefix()
- Specified by:
productPrefix
in interfacescala.Product
-
productArity
public int productArity()
- Specified by:
productArity
in interfacescala.Product
-
productElement
public java.lang.Object productElement(int x$1)
- Specified by:
productElement
in interfacescala.Product
-
productIterator
public scala.collection.Iterator<java.lang.Object> productIterator()
- Specified by:
productIterator
in interfacescala.Product
-
canEqual
public boolean canEqual(java.lang.Object x$1)
- Specified by:
canEqual
in interfacescala.Equals
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object x$1)
- Specified by:
equals
in interfacescala.Equals
- Overrides:
equals
in classjava.lang.Object
-
-