Метод | Описание | |
---|---|---|
Dispose ( ) : void | ||
KafkaTcpSocket ( IKafkaLog log, KafkaNet.Model.KafkaEndpoint endpoint, int maxRetry, System.TimeSpan maximumReconnectionTimeout = null, KafkaNet.Model.StatisticsTrackerOptions statisticsTrackerOptions = null ) : KafkaNet.Common |
Construct socket and open connection to a specified server.
|
|
ReadAsync ( int readSize ) : Task |
Read a certain byte array size return only when all bytes received.
|
|
ReadAsync ( int readSize, |
Read a certain byte array size return only when all bytes received.
|
|
WriteAsync ( |
Convenience function to write full buffer data to the server.
|
|
WriteAsync ( |
Write the buffer data to the server.
|
Метод | Описание | |
---|---|---|
DedicatedSocketTask ( ) : Task |
Stop all pendding task when can not establish connection in max retry, but keep trying to recove and connect to this connection. Only the broker router can dispose of it.
|
|
EnqueueReadTask ( int readSize, |
||
EnqueueWriteTask ( |
||
GetStreamAsync ( ) : Task |
||
ProcessNetworkstreamTasks ( |
||
ProcessNetworkstreamTasksReadTask ( |
||
ProcessNetworkstreamsSendTask ( |
||
ProcessReadTaskAsync ( |
||
ProcessSentTasksAsync ( |
||
RaiseServerDisconnectedEvent ( ) : void | ||
ReEstablishConnectionAsync ( ) : Task |
(Re-)establish the Kafka server connection. Assumes that the caller has already obtained the
|
|
SetExceptionToAllPendingTasks ( |
||
ThrowTaskExceptionIfFaulted ( Task task ) : Task | ||
UseStatisticsTracker ( ) : bool | ||
WrappedException ( |
public KafkaTcpSocket ( IKafkaLog log, KafkaNet.Model.KafkaEndpoint endpoint, int maxRetry, System.TimeSpan maximumReconnectionTimeout = null, KafkaNet.Model.StatisticsTrackerOptions statisticsTrackerOptions = null ) : KafkaNet.Common | ||
log | IKafkaLog | Logging facility for verbose messaging of actions. |
endpoint | KafkaNet.Model.KafkaEndpoint | The IP endpoint to connect to. |
maxRetry | int | |
maximumReconnectionTimeout | System.TimeSpan | The maximum time to wait when backing off on reconnection attempts. |
statisticsTrackerOptions | KafkaNet.Model.StatisticsTrackerOptions | |
Результат | KafkaNet.Common |
public ReadAsync ( int readSize ) : Task |
||
readSize | int | The size in bytes to receive from server. |
Результат | Task |
public ReadAsync ( int readSize, |
||
readSize | int | The size in bytes to receive from server. |
cancellationToken | A cancellation token which will cancel the request. | |
Результат | Task |
public WriteAsync ( |
||
payload | The buffer data to send. | |
Результат | Task |
public WriteAsync ( |
||
payload | The buffer data to send. | |
cancellationToken | A cancellation token which will cancel the request. | |
Результат | Task |