Mercurial > hg > Database > Alice
view src/alice/daemon/Connection.java @ 14:e3f1b21718b0
implements RemoteDataSegment
author | kazz <kazz@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Sun, 15 Jan 2012 00:56:25 +0900 |
parents | 30f97d776a3e |
children | 54bf607118ae |
line wrap: on
line source
package alice.daemon; import java.net.Socket; import java.util.concurrent.LinkedBlockingQueue; import alice.datasegment.Command; public class Connection { public Socket socket; public LinkedBlockingQueue<Command> sendQueue = new LinkedBlockingQueue<Command>(); public Connection(Socket socket) { this.socket = socket; } public void sendCommand(Command cmd) { try { sendQueue.put(cmd); } catch (InterruptedException e) { e.printStackTrace(); } } }