org.apache.qpid.proton.engine
Interface Receiver

All Superinterfaces:
Endpoint, Link

public interface Receiver
extends Link

Receiver


Method Summary
 void drain(int credit)
           
 void flow(int credits)
          issue the specified number of credits
 int recv(byte[] bytes, int offset, int size)
          Receive message data for the current delivery.
 
Methods inherited from interface org.apache.qpid.proton.engine.Link
advance, current, delivery, delivery, getCredit, getName, getQueued, getReceiverSettleMode, getRemoteReceiverSettleMode, getRemoteSenderSettleMode, getRemoteSource, getRemoteTarget, getSenderSettleMode, getSession, getSource, getTarget, getUnsettled, next, setReceiverSettleMode, setRemoteSenderSettleMode, setSenderSettleMode, setSource, setTarget, unsettled
 
Methods inherited from interface org.apache.qpid.proton.engine.Endpoint
close, free, getContext, getLocalError, getLocalState, getRemoteError, getRemoteState, open, setContext
 

Method Detail

flow

void flow(int credits)
issue the specified number of credits


recv

int recv(byte[] bytes,
         int offset,
         int size)
Receive message data for the current delivery.

Parameters:
bytes - the destination array where the message data is written
offset - index in the array to start writing data at
size - the maximum number of bytes to write
Returns:
number of bytes written. -1 if there are no more bytes for the current delivery.

drain

void drain(int credit)


Copyright © 2013 The Apache Software Foundation. All Rights Reserved.