Mercurial > hg > Database > Alice
view src/main/java/alice/topology/node/ReceiveCloseMessage.java @ 547:e91a574b69de dispose
remove index
author | Nozomi Teruya <e125769@ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 18 Aug 2015 16:15:17 +0900 |
parents | 15eeb439830c |
children |
line wrap: on
line source
package alice.topology.node; import alice.codesegment.CodeSegment; import alice.datasegment.CommandType; import alice.datasegment.Receiver; public class ReceiveCloseMessage extends CodeSegment { private Receiver info; public ReceiveCloseMessage(CommandType type) { info = ids.create(type); info.setKey("_CLOSEMESSEAGE", this); } @Override public void run() { if (info.type == CommandType.PEEK) { new PrepareToClose(); } else if (info.type == CommandType.TAKE){ new ReceiveCloseMessage(CommandType.PEEK); } } }