co.cask.tigon.app.queue
Interface InputDatum<T>

Type Parameters:
T - Type of input.
All Superinterfaces:
Iterable<T>

public interface InputDatum<T>
extends Iterable<T>

Represents a dequeue result from QueueReader.


Method Summary
 co.cask.tigon.api.flow.flowlet.InputContext getInputContext()
           
 QueueName getQueueName()
           
 int getRetry()
           
 void incrementRetry()
           
 boolean needProcess()
           
 void reclaim()
          Reclaim the input from the queue consumer.
 int size()
          Returns number of entries in this Iterable.
 
Methods inherited from interface java.lang.Iterable
iterator
 

Method Detail

needProcess

boolean needProcess()

incrementRetry

void incrementRetry()

getRetry

int getRetry()

getInputContext

co.cask.tigon.api.flow.flowlet.InputContext getInputContext()

getQueueName

QueueName getQueueName()

reclaim

void reclaim()
Reclaim the input from the queue consumer. It is needed for processing retried entries.


size

int size()
Returns number of entries in this Iterable.



Copyright © 2014 Cask Data, Inc. Licensed under the Apache License, Version 2.0.