C# Class NATS.Client.Subscription

Inheritance: ISubscription, IDisposable
Mostrar archivo Open project: nats-io/csnats Class Usage Examples

Protected Properties

Property Type Description
delivered long
max long

Public Methods

Method Description
AutoUnsubscribe ( int max ) : void
ClearMaxPending ( ) : void
GetMaxPending ( long &maxPendingBytes, long &maxPendingMessages ) : void
GetPending ( long &pendingBytes, long &pendingMessages ) : void
SetPendingLimits ( long messageLimit, long bytesLimit ) : void
ToString ( ) : string
Unsubscribe ( ) : void

Protected Methods

Method Description
processMsg ( Msg msg ) : bool
tallyDeliveredMessage ( Msg msg ) : long

Private Methods

Method Description
IDisposable ( ) : void
Subscription ( Connection conn, string subject, string queue ) : System
addMessage ( Msg msg, int maxCount ) : bool
checkState ( ) : void
close ( ) : void
close ( bool closeChannel ) : void
handleSlowConsumer ( Msg msg ) : void
tallyMessage ( long bytes ) : bool
unsubscribe ( bool throwEx ) : void

Method Details

AutoUnsubscribe() public method

public AutoUnsubscribe ( int max ) : void
max int
return void

ClearMaxPending() public method

public ClearMaxPending ( ) : void
return void

GetMaxPending() public method

public GetMaxPending ( long &maxPendingBytes, long &maxPendingMessages ) : void
maxPendingBytes long
maxPendingMessages long
return void

GetPending() public method

public GetPending ( long &pendingBytes, long &pendingMessages ) : void
pendingBytes long
pendingMessages long
return void

SetPendingLimits() public method

public SetPendingLimits ( long messageLimit, long bytesLimit ) : void
messageLimit long
bytesLimit long
return void

ToString() public method

public ToString ( ) : string
return string

Unsubscribe() public method

public Unsubscribe ( ) : void
return void

processMsg() protected method

protected processMsg ( Msg msg ) : bool
msg Msg
return bool

tallyDeliveredMessage() protected method

protected tallyDeliveredMessage ( Msg msg ) : long
msg Msg
return long

Property Details

delivered protected_oe property

protected long delivered
return long

max protected_oe property

protected long max
return long