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 dispatchingCrossNodesEventfromPerNodeLocalQueueto remote node.- Since:
- 9.5
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static PerNodeLocalQueueDispatcherImplcreate(TapePerNodeLocalQueueWithStats queue, Executor dispatcherExecutor, CrossNodesEventsServiceGrpc.CrossNodesEventsServiceStub stub, TapePerNodeLocalQueueCriticalHandler perNodeLocalQueueCriticalHandler, MetadataInfo metadataInfo)booleandispatch(@NotNull CrossNodesEvent crossNodesEvent)DispatchesCrossNodesEventto remote node ensuring data durability.StringtoString()
-
-
-
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:PerNodeLocalQueueDispatcherDispatchesCrossNodesEventto remote node ensuring data durability.- Specified by:
dispatchin interfacePerNodeLocalQueueDispatcher- Parameters:
crossNodesEvent- event to dispatch- Returns:
- true if event was dispatched, false otherwise
-
-