org.ehcache.management
Interface ResultSet<T>

All Superinterfaces:
java.lang.Iterable<T>

public interface ResultSet<T>
extends java.lang.Iterable<T>


Method Summary
 T getResult(org.terracotta.management.context.Context context)
           
 T getSingleResult()
           
 boolean isEmpty()
           
 int size()
           
 
Methods inherited from interface java.lang.Iterable
iterator
 

Method Detail

getResult

T getResult(org.terracotta.management.context.Context context)
Returns:
The result of the query for a specific context

getSingleResult

T getSingleResult()
                  throws java.util.NoSuchElementException
Returns:
The result of the query for the only one existing context
Throws:
java.util.NoSuchElementException - If the result set is empty or has more than 1 values

size

int size()

isEmpty

boolean isEmpty()