src/main/java/org/cloudi/API.java
public void forward_(final Integer request_type,
                         final String name,
                         final byte[] request_info,
                         final byte[] request,
                         final Integer timeout,
                         final Byte priority,
                         final byte[] trans_id,
                         final OtpErlangPid pid)
        throws ForwardAsyncException,
               ForwardSyncException,
               InvalidInputException
    {
        if (request_type == API.ASYNC)
            forward_async(name, request_info, request,
                          timeout, priority, trans_id, pid);
        else if (request_type == API.SYNC)
            forward_sync(name, request_info, request,
                         timeout, priority, trans_id, pid);
        else
            throw new InvalidInputException();
    }
public void forward_(final Integer request_type,
                         final String name,
                         final byte[] request_info,
                         final byte[] request,
                         final Integer timeout,
                         final Byte priority,
                         final byte[] trans_id,
                         final OtpErlangPid pid)
        throws ForwardAsyncException,
               ForwardSyncException,
               InvalidInputException
    {
        if (request_type == API.ASYNC)
            forward_async(name, request_info, request,
                          timeout, priority, trans_id, pid);
        else if (request_type == API.SYNC)
            forward_sync(name, request_info, request,
                         timeout, priority, trans_id, pid);
        else
            throw new InvalidInputException();
    }
Forward a message to another service
subscribed that matches the destination service <code>name</code>.

@param request_type  constant API.SYNC or API.ASYNC
@param name          the destination service name
@param request_info  any request metadata
@param request       the request data
@param timeout       the request timeout in milliseconds
@param priority      the priority of this request
@param trans_id      the transaction ID
@param pid           the request's source process ID

@throws ForwardAsyncException async service request was forwarded
@throws ForwardSyncException sync service request was forwarded
@throws InvalidInputException invalid service request type