Beispiel #1
0
 /// <summary>
 /// Non-blocking publish of a partial buffer containing a message to a cluster.
 /// </summary>
 /// <param name="correlationId"> to be used to identify the message to the cluster. </param>
 /// <param name="buffer">        containing message. </param>
 /// <param name="offset">        offset in the buffer at which the encoded message begins. </param>
 /// <param name="length">        in bytes of the encoded message. </param>
 /// <returns> the same as <seealso cref="Publication.Offer(IDirectBuffer, int, int)"/> when in <seealso cref="ClusterRole.Leader"/>
 /// otherwise <see cref="MOCKED_OFFER"/>. </returns>
 public long Offer(
     long correlationId,
     IDirectBuffer buffer,
     int offset,
     int length)
 {
     return(_cluster.Offer(correlationId, _id, _responsePublication, buffer, offset, length));
 }
Beispiel #2
0
 /// <summary>
 /// Non-blocking publish of a partial buffer containing a message to a cluster.
 /// </summary>
 /// <param name="buffer"> containing message. </param>
 /// <param name="offset"> offset in the buffer at which the encoded message begins. </param>
 /// <param name="length"> in bytes of the encoded message. </param>
 /// <returns> the same as <seealso cref="Publication.Offer(IDirectBuffer, int, int, ReservedValueSupplier)"/> when in <seealso cref="ClusterRole.Leader"/>,
 /// otherwise <see cref="MOCKED_OFFER"/> when a follower. </returns>
 public long Offer(IDirectBuffer buffer, int offset, int length)
 {
     return(_clusteredServiceAgent.Offer(Id, _responsePublication, buffer, offset, length));
 }