Esempio n. 1
0
 /**
  * Reject given message
  * 
  * @param  peer.stomp.Transaction $t
  */
 public function nack(Transaction $t = null)
 {
     $this->assertConnection();
     $frame = new NackFrame($this->getMessageId(), $this->getSubscription()->getId());
     if ($t) {
         $frame->setTransaction($t->getName());
     }
     $this->getDestination()->getConnection()->sendFrame($frame);
 }
Esempio n. 2
0
 public function accepts_transaction_name()
 {
     $t = new Transaction('foobar');
     $this->assertEquals('foobar', $t->getName());
 }