Mercurial > hg > Database > Alice
annotate src/main/java/alice/topology/node/SaveCookie.java @ 518:fc313323c53b dispose
add reconnect event
author | sugi |
---|---|
date | Thu, 22 Jan 2015 16:01:32 +0900 |
parents | 6e304a7a60e7 |
children | 15eeb439830c 767d93626b88 2df12c110ebc |
rev | line source |
---|---|
429 | 1 package alice.topology.node; |
2 | |
3 import alice.codesegment.CodeSegment; | |
4 import alice.datasegment.CommandType; | |
5 import alice.datasegment.Receiver; | |
6 | |
7 public class SaveCookie extends CodeSegment{ | |
8 | |
9 private Receiver info = ids.create(CommandType.PEEK); | |
467 | 10 |
429 | 11 public SaveCookie(){ |
12 info.setKey("cookie"); | |
13 } | |
467 | 14 |
429 | 15 @Override |
16 public void run() { | |
17 System.out.println(info.asString()); | |
467 | 18 |
429 | 19 } |
467 | 20 |
21 | |
429 | 22 } |