Net :: Stomp :: Producer.

NET :: STOMP¸¦ ÅëÇØ ¸Þ½ÃÁö¸¦ º¸³»´Â µµ¿ì¹Ì °³Ã¼
Áö±Ý ´Ù¿î·Îµå

Net :: Stomp :: Producer. ¼øÀ§ ¹× ¿ä¾à

±¤°í

  • Rating:
  • ƯÇã:
  • Perl Artistic License
  • °¡°Ý:
  • FREE
  • °Ô½ÃÀÚ À̸§:
  • Gianni Ceccarelli
  • °Ô½ÃÀÚ À¥»çÀÌÆ®:
  • http://search.cpan.org/~dakkar/

Net :: Stomp :: Producer. ű×


Net :: Stomp :: Producer. ¼³¸í

Net :: STOMP :: Producer´Â ½ºÅèÇÁ ¿¬°áÀ» ÅëÇØ ¸Þ½ÃÁö¸¦ º¸³»´Â Perl Ŭ·¡½ºÀÔ´Ï´Ù (net :: stomp :: moosehelpers :: canconnect ÂüÁ¶). ±×°ÍÀº Á÷·ÄÈ­ ¹× À¯È¿¼º °Ë»ç¸¦À§ÇÑ ½Ã¼³À» Á¦°øÇÕ´Ï´Ù. ÀÌ Å¬·¡½ºÀÇ ÀνºÅϽº°¡ ÇÁ·Î¼¼½º¿¡¼­ ½Ì±Û Åæ / Àü¿ªÀ¸·Î °¡Áú ¼ö ÀÖÀ¸¸ç ¸ðµç ¸Þ½ÃÁö¸¦ º¸³»´Â µ¥ »ç¿ëÇÏ½Ç ¼ö ÀÖ½À´Ï´Ù. ¸¹Àº ¿¬°áÀÌÀÖ´Â ºê·ÎÄ¿ÀÇ ¹ü¶÷À» ¹æÁöÇϱ⠶§¹®¿¡ (°¢ ÀνºÅϽº´Â µ¶¸³ÀûÀ¸·Î ¿¬°áµÇ¸ç, ÃÊ´ç ¸¹Àº ÀνºÅϽº¸¦ ¸¸µì´Ï´Ù. ºê·ÎÄ¿ ¶Ç´Â ÇÁ·Î¼¼½º°¡ ÆÄÀÏ ¼³¸í¼­°¡ ºÎÁ·ÇÏ¿© ÀÛµ¿ ÁßÁö) .Synopsis My $ Ser = JSON :: XS-> New-> UTF8; $ P = NET :: STOMM :: PRODUCEER-> NEW ({¼­¹ö => , serializer => sub {$ ser-> encode ($ _ ])}, default_headers => { 'content-type'=> 'json'},}); $ p-> send ( '/ queue / ¾îµò°¡', {type => 'my_message'}, {a => ); ¶ÇÇÑ : ÆÐÅ°Áö My :: Message :: Transformer { ¿¤Å©; ÇÏÀ§ º¯È¯ {My ($ self, @ elems) = @_; {destination => '/ queue / ¾îµò°¡', type => 'my_message',}, {a => @elems}; }} $ p-> transform_and_send ( 'my :: message :: Transformer', 'µ¥ÀÌÅÍ', '±¸Á¶'); ¶Ç´Â ½ÉÁö¾î : ³» $ t = my :: message :: transformer-> new (); $ p-> transform_and_send ($ t, 'µ¥ÀÌÅÍ', '±¸Á¶'); ¸ðµÎ µ¿ÀÏÇÑ ¸Þ½ÃÁö¸¦ º¸³À´Ï´Ù. Á¦Ç°ÀÇ È¨ÆäÀÌÁö


Net :: Stomp :: Producer. °ü·Ã ¼ÒÇÁÆ®¿þ¾î