Package com.atlassian.bamboo.cluster
Class PerNodeLocalQueueDispatcherImpl
java.lang.Object
com.atlassian.bamboo.cluster.PerNodeLocalQueueDispatcherImpl
- All Implemented Interfaces:
PerNodeLocalQueueDispatcher
Responsible for dispatching
CrossNodesEvent
from PerNodeLocalQueue
to remote node.- Since:
- 9.5
-
Method Summary
Modifier and TypeMethodDescriptioncreate
(TapePerNodeLocalQueueWithStats queue, Executor dispatcherExecutor, Map<Class<? extends io.grpc.stub.AbstractAsyncStub<?>>, ? extends io.grpc.stub.AbstractAsyncStub<?>> stubs, TapePerNodeLocalQueueCriticalHandler perNodeLocalQueueCriticalHandler, MetadataInfo metadataInfo) boolean
dispatch
(@NotNull CrossNodesEvent crossNodesEvent) DispatchesCrossNodesEvent
to remote node ensuring data durability.toString()
-
Method Details
-
create
public static PerNodeLocalQueueDispatcherImpl create(TapePerNodeLocalQueueWithStats queue, Executor dispatcherExecutor, Map<Class<? extends io.grpc.stub.AbstractAsyncStub<?>>, ? extends io.grpc.stub.AbstractAsyncStub<?>> stubs, TapePerNodeLocalQueueCriticalHandler perNodeLocalQueueCriticalHandler, MetadataInfo metadataInfo) -
dispatch
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
-
toString
-