org.apache.qpid.proton.engine.impl
Class ReceiverImpl

java.lang.Object
  extended by org.apache.qpid.proton.engine.impl.EndpointImpl
      extended by org.apache.qpid.proton.engine.impl.LinkImpl
          extended by org.apache.qpid.proton.engine.impl.ReceiverImpl
All Implemented Interfaces:
Endpoint, Link, Receiver

public class ReceiverImpl
extends LinkImpl
implements Receiver


Constructor Summary
ReceiverImpl(SessionImpl session, String name)
           
 
Method Summary
 boolean advance()
           
 void drain(int credit)
           
 void flow(int credits)
           
 void free()
           
 int recv(byte[] bytes, int offset, int size)
           
 Iterator<Delivery> unsettled()
           
 
Methods inherited from class org.apache.qpid.proton.engine.impl.LinkImpl
addCredit, close, current, delivery, delivery, getConnectionImpl, getCredit, getName, getQueued, getReceiverSettleMode, getRemoteReceiverSettleMode, getRemoteSenderSettleMode, getRemoteSource, getRemoteTarget, getSenderSettleMode, getSession, getSource, getTarget, getUnsettled, next, open, remove, setCredit, setReceiverSettleMode, setRemoteSenderSettleMode, setSenderSettleMode, setSource, setTarget
 
Methods inherited from class org.apache.qpid.proton.engine.impl.EndpointImpl
getContext, getLocalError, getLocalState, getRemoteError, getRemoteState, setContext, setLocalError
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.qpid.proton.engine.Link
current, delivery, delivery, getCredit, getName, getQueued, getReceiverSettleMode, getRemoteReceiverSettleMode, getRemoteSenderSettleMode, getRemoteSource, getRemoteTarget, getSenderSettleMode, getSession, getSource, getTarget, getUnsettled, next, setReceiverSettleMode, setRemoteSenderSettleMode, setSenderSettleMode, setSource, setTarget
 
Methods inherited from interface org.apache.qpid.proton.engine.Endpoint
close, getContext, getLocalError, getLocalState, getRemoteError, getRemoteState, open, setContext
 

Constructor Detail

ReceiverImpl

public ReceiverImpl(SessionImpl session,
                    String name)
Method Detail

advance

public boolean advance()
Specified by:
advance in interface Link
Overrides:
advance in class LinkImpl

flow

public void flow(int credits)
Specified by:
flow in interface Receiver

recv

public int recv(byte[] bytes,
                int offset,
                int size)
Specified by:
recv in interface Receiver

unsettled

public Iterator<Delivery> unsettled()
Specified by:
unsettled in interface Link

free

public void free()
Specified by:
free in interface Endpoint
Overrides:
free in class LinkImpl

drain

public void drain(int credit)
Specified by:
drain in interface Receiver


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