public class JDSUDPServer extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
static String |
END_KEY |
static String |
ERROR_KEY |
static String |
HIT_KEY |
static JDSUDPServer |
JDSUDPServer |
static String |
LOGIN_KEY |
static String |
PERSON_CLIENT_KEY |
static String |
PERSON_SPLIT_KEY |
static String |
SESSIONID |
static String |
SPLITOR |
static String |
START_KEY |
static boolean |
started |
static String |
STATUS_END_KEY |
static String |
STATUS_SPLIT_KEY |
static String |
STATUS_START_KEY |
static String |
SUCCESS_KEY |
static String |
SYSTEMCODE |
static String |
THREAD_LOCK |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
addRepeatEventKey(String systemId,
String serviceKey,
String personId) |
void |
clearEventKey(String systemId) |
Map<String,Set<String>> |
getAllPersonRepeatEventKey()
开发者订阅消息
|
Map<String,Set<String>> |
getAllRepeatEventKey()
系统定义 消息
|
String |
getCode() |
static JDSUDPServer |
getInstance() |
Integer |
getPort() |
DatagramSocket |
getPushMsgSocket() |
Set<String> |
getRepeatEventKey(String systemId) |
Set<String> |
getRepeatPersonEventKey(String systemId,
String serviceKey) |
String |
getServerIP() |
void |
removeRepeatEventKey(String systemId,
String serviceKey,
String personId) |
boolean |
send(String msgString,
String ip,
Integer port) |
boolean |
sendHeart(String ip,
Integer port) |
void |
setCode(String code) |
void |
setPort(Integer port) |
void |
setPushMsgSocket(DatagramSocket pushMsgSocket) |
void |
start() |
boolean |
started() |
public static JDSUDPServer JDSUDPServer
public static boolean started
public void removeRepeatEventKey(String systemId, String serviceKey, String personId)
public Set<String> getRepeatPersonEventKey(String systemId, String serviceKey)
public void clearEventKey(String systemId)
public void addRepeatEventKey(String systemId, String serviceKey, String personId)
public boolean started()
public static JDSUDPServer getInstance() throws com.ds.common.JDSException
com.ds.common.JDSExceptionpublic void start()
public boolean sendHeart(String ip, Integer port) throws com.ds.common.JDSException
com.ds.common.JDSExceptionpublic boolean send(String msgString, String ip, Integer port) throws com.ds.common.JDSException
com.ds.common.JDSExceptionpublic DatagramSocket getPushMsgSocket()
public void setPushMsgSocket(DatagramSocket pushMsgSocket)
public String getCode()
public void setCode(String code)
public String getServerIP()
public Integer getPort()
public void setPort(Integer port)
Copyright © 2025 onecode. All rights reserved.