Here are the examples of the java api class org.apache.activemq.artemis.core.protocol.core.impl.wireformat.SessionQueueQueryMessage taken from open source projects.
1. HornetQClientSessionContext#queueQuery()
Project: activemq-artemis
File: HornetQClientSessionContext.java
File: HornetQClientSessionContext.java
@Override public ClientSession.QueueQuery queueQuery(final SimpleString queueName) throws ActiveMQException { SessionQueueQueryMessage request = new SessionQueueQueryMessage(queueName); SessionQueueQueryResponseMessage response = (SessionQueueQueryResponseMessage) getSessionChannel().sendBlocking(request, PacketImpl.SESS_QUEUEQUERY_RESP); return response.toQueueQuery(); }
2. ActiveMQSessionContext#queueQuery()
Project: activemq-artemis
File: ActiveMQSessionContext.java
File: ActiveMQSessionContext.java
@Override public ClientSession.QueueQuery queueQuery(final SimpleString queueName) throws ActiveMQException { SessionQueueQueryMessage request = new SessionQueueQueryMessage(queueName); SessionQueueQueryResponseMessage_V2 response = (SessionQueueQueryResponseMessage_V2) sessionChannel.sendBlocking(request, PacketImpl.SESS_QUEUEQUERY_RESP_V2); return response.toQueueQuery(); }