Package com.atlassian.bamboo.cluster
Class PerNodeLocalQueueDispatcherImpl
- java.lang.Object
-
- com.atlassian.bamboo.cluster.PerNodeLocalQueueDispatcherImpl
-
- All Implemented Interfaces:
PerNodeLocalQueueDispatcher
public class PerNodeLocalQueueDispatcherImpl extends Object implements PerNodeLocalQueueDispatcher
Responsible for dispatchingCrossNodesEvent
fromPerNodeLocalQueue
to remote node.- Since:
- 9.5
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static PerNodeLocalQueueDispatcherImpl
create(TapePerNodeLocalQueueWithStats queue, Executor dispatcherExecutor, CrossNodesEventsServiceGrpc.CrossNodesEventsServiceStub stub, TapePerNodeLocalQueueCriticalHandler perNodeLocalQueueCriticalHandler, MetadataInfo metadataInfo)
boolean
dispatch(@NotNull CrossNodesEvent crossNodesEvent)
DispatchesCrossNodesEvent
to remote node ensuring data durability.String
toString()
-
-
-
Method Detail
-
create
public static PerNodeLocalQueueDispatcherImpl create(TapePerNodeLocalQueueWithStats queue, Executor dispatcherExecutor, CrossNodesEventsServiceGrpc.CrossNodesEventsServiceStub stub, TapePerNodeLocalQueueCriticalHandler perNodeLocalQueueCriticalHandler, MetadataInfo metadataInfo)
-
dispatch
public boolean dispatch(@NotNull @NotNull CrossNodesEvent crossNodesEvent)
Description copied from interface:PerNodeLocalQueueDispatcher
DispatchesCrossNodesEvent
to remote node ensuring data durability.- Specified by:
dispatch
in interfacePerNodeLocalQueueDispatcher
- Parameters:
crossNodesEvent
- event to dispatch- Returns:
- true if event was dispatched, false otherwise
-
-