public class MsgPackClientPool extends Object
Modifier and Type | Method and Description |
---|---|
void |
close(org.msgpack.rpc.ClientEx ce)
切断処理.指定されたClientExを切断する.
|
org.msgpack.rpc.ClientEx |
getClient(InetSocketAddress addr,
int timeOut)
Msgpackクライアントをコネクションプールから取得する.
存在しない場合には、新規に作成する. |
static MsgPackClientPool |
getInstance()
インスタンスを取得する.
|
void |
shutdownAllClient()
全強制切断処理.
|
public static MsgPackClientPool getInstance()
public org.msgpack.rpc.ClientEx getClient(InetSocketAddress addr, int timeOut)
addr
- 接続先アドレスtimeOut
- タイムアウトpublic void close(org.msgpack.rpc.ClientEx ce)
ce
- ClientExpublic void shutdownAllClient()
Copyright (C) 2014 Information Analysis Laboratory, NICT
RaSC is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 2.1 of the License, or (at your option) any later version.
RaSC is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License along with this program. If not, see (http://www.gnu.org/licenses/) .