public class AmqpDeviceOperations extends Object
| Modifier and Type | Field and Description |
|---|---|
protected String |
amqpLinkAddress |
protected Map<org.apache.qpid.proton.amqp.Symbol,Object> |
amqpProperties |
protected org.apache.qpid.proton.engine.Receiver |
receiverLink |
protected String |
receiverLinkTag |
protected org.apache.qpid.proton.engine.Sender |
senderLink |
protected String |
senderLinkTag |
| Constructor and Description |
|---|
AmqpDeviceOperations()
Constructor for Amqp Device Operations
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
addAmqpLinkProperty(String key,
String value) |
protected void |
clearAmqpLinkProperty() |
void |
closeLinks()
Close the links
|
void |
initLink(org.apache.qpid.proton.engine.Link link)
Initializes the link's other endpoint according to its type
|
boolean |
isReceiverLinkTag(String name)
Is this name a receiver Link
|
void |
openLinks(org.apache.qpid.proton.engine.Session session)
Open the Session links for session
|
AmqpMessage |
receiverMessageFromLink(String linkName)
Retrieves a message from a link
|
void |
sendMessage(byte[] tag,
byte[] data,
int length,
int offset)
Sends a Message on the senderLink
|
protected String senderLinkTag
protected String receiverLinkTag
protected org.apache.qpid.proton.engine.Sender senderLink
protected org.apache.qpid.proton.engine.Receiver receiverLink
protected String amqpLinkAddress
public AmqpDeviceOperations()
public AmqpMessage receiverMessageFromLink(String linkName)
linkName - The name of the link to receivepublic void openLinks(org.apache.qpid.proton.engine.Session session)
throws IOException,
IllegalArgumentException
session - the Session endpoint.IOException - if the function failed to open the links for the provided session.IllegalArgumentException - if the session is null.public boolean isReceiverLinkTag(String name)
name - Name of the linkpublic void initLink(org.apache.qpid.proton.engine.Link link)
throws IOException,
IllegalArgumentException
link - The link which shall be initialize.IllegalArgumentException - if link argument is nullIOException - if Proton throwspublic void sendMessage(byte[] tag,
byte[] data,
int length,
int offset)
tag - delivery tagdata - Data to be sent on the linklength - Length of the dataoffset - Offset of the data to sendpublic void closeLinks()
protected void clearAmqpLinkProperty()
Copyright © 2019. All rights reserved.