//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#: //ORIGINAL LINE: public static org.neo4j.causalclustering.messaging.marshalling.ContentBuilder<ReplicatedContent> deserialize(org.neo4j.storageengine.api.ReadableChannel channel) throws java.io.IOException, org.neo4j.causalclustering.messaging.EndOfStreamException public static ContentBuilder <ReplicatedContent> Deserialize(ReadableChannel channel) { long mostSigBits = channel.Long; long leastSigBits = channel.Long; MemberId owner = (new MemberId.Marshal()).unmarshal(channel); GlobalSession globalSession = new GlobalSession(new System.Guid(mostSigBits, leastSigBits), owner); long localSessionId = channel.Long; long sequenceNumber = channel.Long; LocalOperationId localOperationId = new LocalOperationId(localSessionId, sequenceNumber); return(ContentBuilder.unfinished(subContent => new DistributedOperation(subContent, globalSession, localOperationId))); }
public virtual void Update(GlobalSession globalSession, LocalOperationId localOperationId, long logIndex) { _sessionState.update(globalSession, localOperationId, logIndex); }
public virtual bool ValidateOperation(GlobalSession globalSession, LocalOperationId localOperationId) { return(_sessionState.validateOperation(globalSession, localOperationId)); }
public DistributedOperation(ReplicatedContent content, GlobalSession globalSession, LocalOperationId operationId) { this._content = content; this._globalSession = globalSession; this._operationId = operationId; }