src/main/java/org/cloudi/API.java
public boolean poll(final int timeout)
        throws InvalidInputException,
               MessageDecodingException,
               TerminateException
    {
        if (Boolean.TRUE == poll_request(timeout, true))
            return true;
        return false;
    }
public boolean poll(final int timeout)
        throws InvalidInputException,
               MessageDecodingException,
               TerminateException
    {
        if (Boolean.TRUE == poll_request(timeout, true))
            return true;
        return false;
    }
public boolean poll ( final int timeout ) throws InvalidInputException , MessageDecodingException , TerminateException { if ( Boolean . TRUE == poll_request ( timeout , true ) ) return true ; return false ; }
Blocks to process incoming CloudI service requests

@param timeout  the block timeout in milliseconds (-1 is infinity)
@return a boolean to determine if a timeout occurred
@throws InvalidInputException invalid input to internal function call
@throws MessageDecodingException service messaging failure
@throws TerminateException service execution must terminate
Blocks to process incoming CloudI service requests