(long sessionId, AsyncSocket socket)
| 143 | } |
| 144 | |
| 145 | public void bind(long sessionId, AsyncSocket socket) { |
| 146 | lock(); |
| 147 | try { |
| 148 | this.bindSessionId = sessionId; |
| 149 | this.bindSocket = socket; |
| 150 | if (null != bindSocket) |
| 151 | tryPushMessage(); |
| 152 | } finally { |
| 153 | unlock(); |
| 154 | } |
| 155 | } |
| 156 | |
| 157 | public String getTopic() { |
| 158 | return topic; |