pub struct AllocateMessageQueueByMachineRoomNearby { /* private fields */ }Expand description
Prefers queues local to a consumer and shares queues from rooms without consumers.
Implementations§
Source§impl AllocateMessageQueueByMachineRoomNearby
impl AllocateMessageQueueByMachineRoomNearby
pub fn new( strategy: Box<dyn AllocateMessageQueueStrategy>, resolver: Box<dyn MachineRoomResolver>, ) -> Self
Trait Implementations§
Source§impl AllocateMessageQueueStrategy for AllocateMessageQueueByMachineRoomNearby
impl AllocateMessageQueueStrategy for AllocateMessageQueueByMachineRoomNearby
fn allocate( &self, consumer_group: &CheetahString, current_cid: &CheetahString, mq_all: &[MessageQueue], cid_all: &[CheetahString], ) -> Result<Vec<MessageQueue>>
fn get_name(&self) -> &'static str
Auto Trait Implementations§
impl !RefUnwindSafe for AllocateMessageQueueByMachineRoomNearby
impl !UnwindSafe for AllocateMessageQueueByMachineRoomNearby
impl Freeze for AllocateMessageQueueByMachineRoomNearby
impl Send for AllocateMessageQueueByMachineRoomNearby
impl Sync for AllocateMessageQueueByMachineRoomNearby
impl Unpin for AllocateMessageQueueByMachineRoomNearby
impl UnsafeUnpin for AllocateMessageQueueByMachineRoomNearby
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more