Package co.cask.tigon.app.queue

Examples of co.cask.tigon.app.queue.QueueSpecification


   * and the matching {@link Schema}
   */
  protected QueueSpecification createSpec(final QueueName queueName,
                                          final Schema outputSchema,
                                          final Schema inputSchema) {
    return new QueueSpecification() {
      @Override
      public QueueName getQueueName() {
        return queueName;
      }

      @Override
      public Schema getInputSchema() {
        return inputSchema;
      }

      @Override
      public Schema getOutputSchema() {
        return outputSchema;
      }

      @Override
      public int hashCode() {
        return Objects.hashCode(getQueueName(), getInputSchema(), getOutputSchema());
      }

      @Override
      public boolean equals(Object obj) {
        if (obj == null || !(obj instanceof QueueSpecification)) {
          return false;
        }
        QueueSpecification other = (QueueSpecification) obj;
        return Objects.equal(getQueueName(), other.getQueueName())
                && Objects.equal(getInputSchema(), other.getInputSchema())
                && Objects.equal(getOutputSchema(), other.getOutputSchema());
      }

      @Override
      public String toString() {
        return queueName.toString();
View Full Code Here

TOP

Related Classes of co.cask.tigon.app.queue.QueueSpecification

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.