C# Class NServiceBus.Redis.RedisQueue

Inheritance: ISendMessages, IReceiveMessages
ファイルを表示 Open project: mackie1001/NServicebus.Redis Class Usage Examples

Protected Properties

Property Type Description
_clientManager IRedisClientsManager
_keyNameProvider IQueueKeyNameProvider
_log log4net.ILog
_manager NServiceBus.Redis.Management.QueueManager
_receiveAddress NServiceBus.Address
_serializer ISerializer
_timeoutSeconds int
_transactional bool
_useSharedEndpointQueues bool

Public Methods

Method Description
HasMessage ( ) : bool
Init ( NServiceBus.Address address, bool transactional ) : void
Receive ( ) : TransportMessage
RedisQueue ( ISerializer serializer, IRedisClientsManager clientManager, IQueueKeyNameProvider keyNameProvider ) : System
RedisQueue ( ISerializer serializer, IRedisClientsManager clientManager, IQueueKeyNameProvider keyNameProvider, int timeoutSeconds ) : System
Send ( TransportMessage message, NServiceBus.Address address ) : void

Protected Methods

Method Description
Deserialize ( string messageString ) : TransportMessage
GetClaimedMessageIdListName ( NServiceBus.Address address ) : string
GetClient ( ) : RedisClient
GetCounterName ( NServiceBus.Address address ) : string
GetMessageClaimTimeoutKey ( NServiceBus.Address address, string messageId ) : string
GetMessageHashName ( NServiceBus.Address address ) : string
GetMessageIdQueueName ( NServiceBus.Address address ) : string
IncrementId ( NServiceBus.Address address ) : long
Serialize ( TransportMessage message ) : string

Private Methods

Method Description
CommitMessageReceive ( string messageId ) : void

Delete an item once it's been successfully processed

DoSend ( TransportMessage message, NServiceBus.Address address ) : void
RollbackMessageReceive ( string messageId ) : void

Put an item back on the available queue

Method Details

Deserialize() protected method

protected Deserialize ( string messageString ) : TransportMessage
messageString string
return TransportMessage

GetClaimedMessageIdListName() protected method

protected GetClaimedMessageIdListName ( NServiceBus.Address address ) : string
address NServiceBus.Address
return string

GetClient() protected method

protected GetClient ( ) : RedisClient
return ServiceStack.Redis.RedisClient

GetCounterName() protected method

protected GetCounterName ( NServiceBus.Address address ) : string
address NServiceBus.Address
return string

GetMessageClaimTimeoutKey() protected method

protected GetMessageClaimTimeoutKey ( NServiceBus.Address address, string messageId ) : string
address NServiceBus.Address
messageId string
return string

GetMessageHashName() protected method

protected GetMessageHashName ( NServiceBus.Address address ) : string
address NServiceBus.Address
return string

GetMessageIdQueueName() protected method

protected GetMessageIdQueueName ( NServiceBus.Address address ) : string
address NServiceBus.Address
return string

HasMessage() public method

public HasMessage ( ) : bool
return bool

IncrementId() protected method

protected IncrementId ( NServiceBus.Address address ) : long
address NServiceBus.Address
return long

Init() public method

public Init ( NServiceBus.Address address, bool transactional ) : void
address NServiceBus.Address
transactional bool
return void

Receive() public method

public Receive ( ) : TransportMessage
return TransportMessage

RedisQueue() public method

public RedisQueue ( ISerializer serializer, IRedisClientsManager clientManager, IQueueKeyNameProvider keyNameProvider ) : System
serializer ISerializer
clientManager IRedisClientsManager
keyNameProvider IQueueKeyNameProvider
return System

RedisQueue() public method

public RedisQueue ( ISerializer serializer, IRedisClientsManager clientManager, IQueueKeyNameProvider keyNameProvider, int timeoutSeconds ) : System
serializer ISerializer
clientManager IRedisClientsManager
keyNameProvider IQueueKeyNameProvider
timeoutSeconds int
return System

Send() public method

public Send ( TransportMessage message, NServiceBus.Address address ) : void
message TransportMessage
address NServiceBus.Address
return void

Serialize() protected method

protected Serialize ( TransportMessage message ) : string
message TransportMessage
return string

Property Details

_clientManager protected_oe property

protected IRedisClientsManager _clientManager
return IRedisClientsManager

_keyNameProvider protected_oe property

protected IQueueKeyNameProvider _keyNameProvider
return IQueueKeyNameProvider

_log protected_oe property

protected ILog,log4net _log
return log4net.ILog

_manager protected_oe property

protected QueueManager,NServiceBus.Redis.Management _manager
return NServiceBus.Redis.Management.QueueManager

_receiveAddress protected_oe property

protected Address,NServiceBus _receiveAddress
return NServiceBus.Address

_serializer protected_oe property

protected ISerializer _serializer
return ISerializer

_timeoutSeconds protected_oe property

protected int _timeoutSeconds
return int

_transactional protected_oe property

protected bool _transactional
return bool

_useSharedEndpointQueues protected_oe property

If true this will mean that the machine part of the address will not be used and only the logical endpoint name will be used in the queue name.
protected bool _useSharedEndpointQueues
return bool