123124125126127128129130131132133
out.startPacket(); out.writeInt(HmtpPacketType.MESSAGE.ordinal()); out.writeString(to); out.writeString(from); out.writeObject(value); out.endPacket(); if (_isAutoFlush) out.flush(); } }
160161162163164165166167168169170
out.writeInt(HmtpPacketType.MESSAGE_ERROR.ordinal()); out.writeString(to); out.writeString(from); out.writeObject(value); out.writeObject(error); out.endPacket(); if (_isAutoFlush) out.flush(); } }
201202203204205206207208209210211
out.writeInt(HmtpPacketType.QUERY_GET.ordinal()); out.writeString(to); out.writeString(from); out.writeLong(id); out.writeObject(value); out.endPacket(); if (_isAutoFlush) out.flush(); } }
238239240241242243244245246247248
out.writeInt(HmtpPacketType.QUERY_SET.ordinal()); out.writeString(to); out.writeString(from); out.writeLong(id); out.writeObject(value); out.endPacket(); if (_isAutoFlush) out.flush(); } }
275276277278279280281282283284285
out.writeInt(HmtpPacketType.QUERY_RESULT.ordinal()); out.writeString(to); out.writeString(from); out.writeLong(id); out.writeObject(value); out.endPacket(); if (_isAutoFlush) out.flush(); } }
314315316317318319320321322323324
out.writeString(to); out.writeString(from); out.writeLong(id); out.writeObject(value); out.writeObject(error); out.endPacket(); if (_isAutoFlush) out.flush(); } }
117118119120121122123124125126127
switch (HmtpPacketType.TYPES[type]) { case MESSAGE: { Serializable value = (Serializable) hIn.readObject(); in.endPacket(); if (log.isLoggable(Level.FINER)) { log.finer(this + " message " + value + " {to:" + to + ", from:" + from + "}"); }
133134135136137138139140141142143
case MESSAGE_ERROR: { Serializable value = (Serializable) hIn.readObject(); ActorError error = (ActorError) hIn.readObject(); in.endPacket(); if (log.isLoggable(Level.FINER)) { log.finer(this + " messageError " + error + " " + value + " {to:" + to + ", from:" + from + "}"); }
149150151152153154155156157158159
case QUERY_GET: { long id = hIn.readLong(); Serializable value = (Serializable) hIn.readObject(); in.endPacket(); if (log.isLoggable(Level.FINER)) { log.finer(this + " queryGet " + value + " {id:" + id + ", to:" + to + ", from:" + from + "}"); }
165166167168169170171172173174175
case QUERY_SET: { long id = hIn.readLong(); Serializable value = (Serializable) hIn.readObject(); in.endPacket(); if (log.isLoggable(Level.FINER)) { log.finer(this + " querySet " + value + " {id:" + id + ", to:" + to + ", from:" + from + "}"); }