quarks.samples.connectors

Class MsgSupplier

  • java.lang.Object
    • quarks.samples.connectors.MsgSupplier
  • All Implemented Interfaces:
    java.io.Serializable, Supplier<java.lang.String>


    public class MsgSupplier
    extends java.lang.Object
    implements Supplier<java.lang.String>
    A Supplier for creating sample messages to publish.
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor and Description
      MsgSupplier(int maxCnt) 
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      java.lang.String get()
      Supply a value, each call to this function may return a different value.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • MsgSupplier

        public MsgSupplier(int maxCnt)
    • Method Detail

      • get

        public java.lang.String get()
        Description copied from interface: Supplier
        Supply a value, each call to this function may return a different value.
        Specified by:
        get in interface Supplier<java.lang.String>
        Returns:
        Value supplied by this function.

Copyright IBM 2015,2016 - 2f6ad0e-20160307-0902