Class 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 target StreamId by the specified Duration
    See Also:
    DelayedStreamFactory, Serialized Form
    • Constructor Detail

      • DelayedStreamId

        public DelayedStreamId​(StreamId<T> target,
                               java.time.Duration delay)
    • Method Detail

      • getDelay

        public java.time.Duration getDelay()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object