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

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

public abstract class LinkImpl
extends EndpointImpl
implements Link


Constructor Summary
LinkImpl(SessionImpl session, String name)
           
 
Method Summary
 void addCredit(int credit)
           
 boolean advance()
           
 void close()
           
 DeliveryImpl current()
           
 DeliveryImpl delivery(byte[] tag)
           
 DeliveryImpl delivery(byte[] tag, int offset, int length)
           
 void free()
           
protected  ConnectionImpl getConnectionImpl()
           
 int getCredit()
           
 String getName()
           
 int getQueued()
           
 ReceiverSettleMode getReceiverSettleMode()
           
 ReceiverSettleMode getRemoteReceiverSettleMode()
           
 SenderSettleMode getRemoteSenderSettleMode()
           
 Source getRemoteSource()
           
 Target getRemoteTarget()
           
 SenderSettleMode getSenderSettleMode()
           
 SessionImpl getSession()
           
 Source getSource()
           
 Target getTarget()
           
 int getUnsettled()
           
 Link next(EnumSet<EndpointState> local, EnumSet<EndpointState> remote)
           
 void open()
           
 void remove(DeliveryImpl delivery)
           
 void setCredit(int credit)
           
 void setReceiverSettleMode(ReceiverSettleMode receiverSettleMode)
           
 void setRemoteSenderSettleMode(SenderSettleMode remoteSenderSettleMode)
           
 void setSenderSettleMode(SenderSettleMode senderSettleMode)
           
 void setSource(Source source)
           
 void setTarget(Target target)
           
 
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
unsettled
 
Methods inherited from interface org.apache.qpid.proton.engine.Endpoint
getContext, getLocalError, getLocalState, getRemoteError, getRemoteState, setContext
 

Constructor Detail

LinkImpl

public LinkImpl(SessionImpl session,
                String name)
Method Detail

open

public void open()
Specified by:
open in interface Endpoint
Overrides:
open in class EndpointImpl

close

public void close()
Specified by:
close in interface Endpoint
Overrides:
close in class EndpointImpl

getName

public String getName()
Specified by:
getName in interface Link

delivery

public DeliveryImpl delivery(byte[] tag)
Specified by:
delivery in interface Link

delivery

public DeliveryImpl delivery(byte[] tag,
                             int offset,
                             int length)
Specified by:
delivery in interface Link

free

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

remove

public void remove(DeliveryImpl delivery)

current

public DeliveryImpl current()
Specified by:
current in interface Link

advance

public boolean advance()
Specified by:
advance in interface Link

getConnectionImpl

protected ConnectionImpl getConnectionImpl()
Specified by:
getConnectionImpl in class EndpointImpl

getSession

public SessionImpl getSession()
Specified by:
getSession in interface Link

getRemoteSource

public Source getRemoteSource()
Specified by:
getRemoteSource in interface Link

getRemoteTarget

public Target getRemoteTarget()
Specified by:
getRemoteTarget in interface Link

getSource

public Source getSource()
Specified by:
getSource in interface Link

setSource

public void setSource(Source source)
Specified by:
setSource in interface Link

getTarget

public Target getTarget()
Specified by:
getTarget in interface Link

setTarget

public void setTarget(Target target)
Specified by:
setTarget in interface Link

next

public Link next(EnumSet<EndpointState> local,
                 EnumSet<EndpointState> remote)
Specified by:
next in interface Link

getCredit

public int getCredit()
Specified by:
getCredit in interface Link

addCredit

public void addCredit(int credit)

setCredit

public void setCredit(int credit)

getQueued

public int getQueued()
Specified by:
getQueued in interface Link

getUnsettled

public int getUnsettled()
Specified by:
getUnsettled in interface Link

getSenderSettleMode

public SenderSettleMode getSenderSettleMode()
Specified by:
getSenderSettleMode in interface Link

setSenderSettleMode

public void setSenderSettleMode(SenderSettleMode senderSettleMode)
Specified by:
setSenderSettleMode in interface Link

getRemoteSenderSettleMode

public SenderSettleMode getRemoteSenderSettleMode()
Specified by:
getRemoteSenderSettleMode in interface Link

setRemoteSenderSettleMode

public void setRemoteSenderSettleMode(SenderSettleMode remoteSenderSettleMode)
Specified by:
setRemoteSenderSettleMode in interface Link

getReceiverSettleMode

public ReceiverSettleMode getReceiverSettleMode()
Specified by:
getReceiverSettleMode in interface Link

setReceiverSettleMode

public void setReceiverSettleMode(ReceiverSettleMode receiverSettleMode)
Specified by:
setReceiverSettleMode in interface Link

getRemoteReceiverSettleMode

public ReceiverSettleMode getRemoteReceiverSettleMode()
Specified by:
getRemoteReceiverSettleMode in interface Link


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