public _IRunnable_111(MCommittedInfo _enclosing, CallbackObjectInfoCollections callbackInfos , int dispatcherID) { this._enclosing = _enclosing; this.callbackInfos = callbackInfos; this.dispatcherID = dispatcherID; }
private void AddCommittedInfoMsg(CallbackObjectInfoCollections committedInfo, LocalTransaction serverTransaction) { lock (ContainerLock()) { Msg.CommittedInfo.SetTransaction(serverTransaction); MCommittedInfo message = Msg.CommittedInfo.Encode(committedInfo, ServerMessageDispatcher ().DispatcherID()); message.SetMessageDispatcher(ServerMessageDispatcher()); ServerMessageDispatcher().Server().AddCommittedInfoMsg(message); } }
public virtual MCommittedInfo Encode(CallbackObjectInfoCollections callbackInfo, int dispatcherID) { ByteArrayOutputStream os = new ByteArrayOutputStream(); PrimitiveCodec.WriteInt(os, dispatcherID); byte[] bytes = EncodeInfo(callbackInfo, os); MCommittedInfo committedInfo = (MCommittedInfo)GetWriterForLength(Transaction(), bytes.Length + Const4.IntLength); committedInfo._payLoad.Append(bytes); return(committedInfo); }
internal InternalIDEncoder(MCommittedInfo _enclosing) { this._enclosing = _enclosing; }
internal FrozenObjectInfoEncoder(MCommittedInfo _enclosing) { this._enclosing = _enclosing; }
public virtual void AddCommittedInfoMsg(MCommittedInfo message) { _committedInfosQueue.Add(message); }
private IObjectInfoCollection DecodeObjectInfoCollection(ByteArrayInputStream @is , MCommittedInfo.IObjectInfoEncoder encoder) { Collection4 collection = new Collection4(); while (true) { IObjectInfo info = encoder.Decode(@is); if (null == info) { break; } collection.Add(info); } return new ObjectInfoCollectionImpl(collection); }
private void EncodeObjectInfoCollection(ByteArrayOutputStream os, IObjectInfoCollection collection, MCommittedInfo.IObjectInfoEncoder encoder) { IEnumerator iter = collection.GetEnumerator(); while (iter.MoveNext()) { IObjectInfo obj = (IObjectInfo)iter.Current; encoder.Encode(os, obj); } PrimitiveCodec.WriteLong(os, -1); }