112113114115116117118119
this.setType(aType); try { this.channel().exchangeDeclare(aName, aType, isDurable); } catch (IOException e) { throw new MessageException("Failed to create/open the exchange.", e); } }
8990919293949596
this.setConnection(factory.newConnection()); this.setChannel(this.connection().createChannel()); } catch (IOException e) { throw new MessageException("Failed to create/open the queue.", e); } }
626364656667686970
this.brokerChannel().queueName(), this.textDurability(), aTextMessage.getBytes()); } catch (IOException e) { throw new MessageException("Failed to send message to channel.", e); } return this; }
919293949596979899
this.brokerChannel().queueName(), aMessageParameters.properties(), aTextMessage.getBytes()); } catch (IOException e) { throw new MessageException("Failed to send message to channel.", e); } return this; }
121122123124125126127128129
aRoutingKey, aMessageParameters.properties(), aTextMessage.getBytes()); } catch (IOException e) { throw new MessageException("Failed to send message to channel.", e); } return this; }
152153154155156157158159160
174175176177178179180181182
this.brokerChannel().queueName(), this.binaryDurability(), aBinaryMessage); } catch (IOException e) { throw new MessageException("Failed to send message to channel.", e); } return this; }
202203204205206207208209210
232233234235236237238239240
aRoutingKey, this.binaryDurability(), aBinaryMessage); } catch (IOException e) { throw new MessageException("Failed to send message to channel.", e); } return this; }
263264265266267268269270271