Class DelayedStreamId<T>
- java.lang.Object
-
- org.streamingpool.core.service.streamid.DelayedStreamId<T>
-
- Type Parameters:
T- type of the original data stream
- All Implemented Interfaces:
java.io.Serializable,StreamId<T>
public class DelayedStreamId<T> extends java.lang.Object implements StreamId<T>, java.io.Serializable
Delay the items emitted by the stream created with the targetStreamIdby the specifiedDuration- See Also:
DelayedStreamFactory, Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DelayedStreamId(StreamId<T> target, java.time.Duration delay)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static <T> DelayedStreamId<T>delayBy(StreamId<T> target, java.time.Duration delay)booleanequals(java.lang.Object obj)java.time.DurationgetDelay()StreamId<T>getTarget()inthashCode()java.lang.StringtoString()
-
-
-
Method Detail
-
delayBy
public static <T> DelayedStreamId<T> delayBy(StreamId<T> target, java.time.Duration delay)
-
getDelay
public java.time.Duration getDelay()
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-