為整個專案重新產生程式碼,然後重新建置整個專案。當您執行 MySubscribingApplication 及 MyPublishingApplication 之後,應該看到下列輸出。 註: 為了符合本指導教學中的主題,下列樣本輸出的格式化與執行本課程時顯示的方式不同。樣本輸出已經透過插入換行符進行了格式化,因此您能看到每一行的輸出。當您執行本指導教學時輸出中不會出現這些換行符。每一行都以 myKeyAttribute 開始,以 myLongSequence 結束。
準備接收資料
myKeyAttribute: 2, myLongAttribute: 2, myBooleanAttribute: 0,
myDoubleAttribute: 0.500, myStringAttribute: message number 2,
myLongSequence: {2, 3, 4}
myKeyAttribute: 3, myLongAttribute: 3, myBooleanAttribute: 1,
myDoubleAttribute: 0.333, myStringAttribute: message number 3,
myLongSequence: {3, 4, 5}
myKeyAttribute: 4, myLongAttribute: 4, myBooleanAttribute: 0,
myDoubleAttribute: 0.250, myStringAttribute: message number 4,
myLongSequence: {4, 5, 6}
myKeyAttribute: 5, myLongAttribute: 5, myBooleanAttribute: 1,
myDoubleAttribute: 0.200, myStringAttribute: message number 5,
myLongSequence: {5, 6, 7}