public abstract class AmqpLink
extends java.lang.Object
Constructor and Description |
---|
AmqpLink(java.lang.String name,
java.lang.String address) |
Modifier and Type | Method and Description |
---|---|
void |
accepted(long mid) |
void |
afterAttach()
Called after the attach has been sent to the peer.
|
java.lang.String |
getAddress() |
java.util.Map<java.lang.String,java.lang.Object> |
getAttachProperties() |
long |
getDeliveryCount() |
int |
getIncomingHandle() |
java.lang.String |
getName() |
int |
getOutgoingHandle() |
abstract FrameAttach.Role |
getRole() |
AmqpSession |
getSession() |
java.util.Map<java.lang.String,java.lang.Object> |
getSourceProperties() |
java.util.Map<java.lang.String,java.lang.Object> |
getTargetProperties() |
void |
modified(long mid,
boolean isFailure,
boolean isUndeliverableHere) |
void |
onAccepted(long xid,
long messageId) |
void |
onFlow(FrameFlow flow) |
void |
onModified(long xid,
long mid,
boolean isFailed,
boolean isUndeliverableHere) |
void |
onRejected(long xid,
long messageId,
AmqpError error) |
void |
onReleased(long xid,
long messageId) |
protected void |
onTransfer(FrameTransfer transfer,
AmqpReader ain)
Message receivers implement this method to receive a
message fragment from the network.
|
void |
rejected(long mid,
java.lang.String errorMessage) |
void |
released(long mid) |
void |
setIncomingHandle(int handle) |
void |
setOutgoingHandle(int handle) |
void |
setPeerDeliveryCount(long deliveryCount) |
java.lang.String |
toString() |
public java.lang.String getName()
public java.lang.String getAddress()
public abstract FrameAttach.Role getRole()
public java.util.Map<java.lang.String,java.lang.Object> getAttachProperties()
public java.util.Map<java.lang.String,java.lang.Object> getSourceProperties()
public java.util.Map<java.lang.String,java.lang.Object> getTargetProperties()
public AmqpSession getSession()
public int getIncomingHandle()
public void setIncomingHandle(int handle)
public int getOutgoingHandle()
public void setOutgoingHandle(int handle)
public void afterAttach()
protected void onTransfer(FrameTransfer transfer, AmqpReader ain) throws java.io.IOException
java.io.IOException
public void onAccepted(long xid, long messageId)
messageId
- public void onRejected(long xid, long messageId, AmqpError error)
public void onReleased(long xid, long messageId)
messageId
- public void onModified(long xid, long mid, boolean isFailed, boolean isUndeliverableHere)
public void accepted(long mid)
public void rejected(long mid, java.lang.String errorMessage)
public void modified(long mid, boolean isFailure, boolean isUndeliverableHere)
public void released(long mid)
public long getDeliveryCount()
public void setPeerDeliveryCount(long deliveryCount)
public void onFlow(FrameFlow flow)
flow
- public java.lang.String toString()
toString
in class java.lang.Object