📄 session.java
字号:
// **********************************************************************//// Copyright (c) 2003-2008 ZeroC, Inc. All rights reserved.//// This copy of Chat Demo is licensed to you under the terms// described in the CHAT_DEMO_LICENSE file included in this// distribution.//// **********************************************************************package ChatDemoGUI;class Session{ public Session(Coordinator coordinator, Chat.ChatSessionPrx session, long period) { _session = session; _sessionRefreshThread = new SessionRefreshThread(coordinator, session, period); _sessionRefreshThread.start(); } public Chat.ChatSessionPrx proxy() { return _session; } public void close() { _sessionRefreshThread.done(); for(;;) { try { _sessionRefreshThread.join(); break; } catch(InterruptedException ex) { } } try { _session.destroy(); } catch(Ice.LocalException ex) { } } private final Chat.ChatSessionPrx _session; private final SessionRefreshThread _sessionRefreshThread;}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -