From b722d4f4cfe29010ed8b5d260285dfc9bd576860 Mon Sep 17 00:00:00 2001 From: wentch <22250530@qq.com> Date: Tue, 15 Dec 2015 11:35:14 +0800 Subject: [PATCH] --- src/org/redkale/net/sncp/SncpResponse.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/org/redkale/net/sncp/SncpResponse.java b/src/org/redkale/net/sncp/SncpResponse.java index 2e2bd4ee5..79e384f6e 100644 --- a/src/org/redkale/net/sncp/SncpResponse.java +++ b/src/org/redkale/net/sncp/SncpResponse.java @@ -18,13 +18,13 @@ import org.redkale.util.*; */ public final class SncpResponse extends Response { - public static final int RETCODE_ILLSERVICEID = 10001; //无效serviceid + public static final int RETCODE_ILLSERVICEID = (1 << 10); //无效serviceid - public static final int RETCODE_ILLNAMEID = 10002; //无效nameid + public static final int RETCODE_ILLNAMEID = (1 << 11); //无效nameid - public static final int RETCODE_ILLACTIONID = 10003; //无效actionid + public static final int RETCODE_ILLACTIONID = (1 << 12); //无效actionid - public static final int RETCODE_THROWEXCEPTION = 10011; //内部异常 + public static final int RETCODE_THROWEXCEPTION = (1 << 30); //内部异常 public static ObjectPool createPool(AtomicLong creatCounter, AtomicLong cycleCounter, int max, Creator creator) { return new ObjectPool<>(creatCounter, cycleCounter, max, creator, (x) -> ((SncpResponse) x).prepare(), (x) -> ((SncpResponse) x).recycle());