use of org.apache.qpid.server.protocol.v1_0.type.FrameBody in project qpid-broker-j by apache.
the class AMQPConnection_1_0Impl method send.
public void send(short channel, FrameBody body) {
AMQFrame frame = AMQFrame.createAMQFrame(channel, body);
send(frame);
}
use of org.apache.qpid.server.protocol.v1_0.type.FrameBody in project qpid-broker-j by apache.
the class Session_1_0Test method testReceiveReattachRebindingQueueNoActiveLinks.
public void testReceiveReattachRebindingQueueNoActiveLinks() {
final String linkName = "testLink";
final String address = "amq.direct/" + TOPIC_NAME;
Attach attach = createSharedTopicAttach(true, linkName, address, true);
_session.receiveAttach(attach);
assertAttachSent(_connection, _session, attach);
assertQueues(TOPIC_NAME, LifetimePolicy.PERMANENT);
sendDetach(_session, attach.getHandle(), false);
ArgumentCaptor<FrameBody> frameCapture = ArgumentCaptor.forClass(FrameBody.class);
verify(_connection, times(2)).sendFrame(eq(_session.getChannelId()), frameCapture.capture());
assertTrue(frameCapture.getAllValues().get(1) instanceof Detach);
assertQueues(TOPIC_NAME, LifetimePolicy.PERMANENT);
String topicName2 = TOPIC_NAME + "2";
final String address2 = "amq.direct/" + topicName2;
Attach attach2 = createSharedTopicAttach(true, linkName, address2, true);
_session.receiveAttach(attach2);
assertAttachSent(_connection, _session, attach2, 2);
assertQueues(topicName2, LifetimePolicy.PERMANENT);
}
use of org.apache.qpid.server.protocol.v1_0.type.FrameBody in project qpid-broker-j by apache.
the class Interaction method sendPerformativeAndChainFuture.
private void sendPerformativeAndChainFuture(final SaslFrameBody frameBody) throws Exception {
SASLFrame transportFrame = new SASLFrame(frameBody);
sendPerformativeAndChainFuture(transportFrame);
}
Aggregations