Package com.atlassian.bamboo.cluster
Class CrossNodesRemoteBroadcasterImpl
- java.lang.Object
-
- com.atlassian.bamboo.cluster.CrossNodesRemoteBroadcasterImpl
-
- All Implemented Interfaces:
CrossNodesRemoteBroadcaster
public class CrossNodesRemoteBroadcasterImpl extends Object implements CrossNodesRemoteBroadcaster
-
-
Constructor Summary
Constructors Constructor Description CrossNodesRemoteBroadcasterImpl(PerNodeLocalQueueManager perNodeLocalQueueManager)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static @NotNull Optional<CrossNodesRemoteBroadcaster>
getComponentAccessor()
boolean
send(@NotNull CrossNodesEvent event)
Sends theCrossNodesEvent
to all other nodes in the cluster.
-
-
-
Constructor Detail
-
CrossNodesRemoteBroadcasterImpl
@Inject public CrossNodesRemoteBroadcasterImpl(PerNodeLocalQueueManager perNodeLocalQueueManager)
-
-
Method Detail
-
send
public boolean send(@NotNull @NotNull CrossNodesEvent event)
Description copied from interface:CrossNodesRemoteBroadcaster
Sends theCrossNodesEvent
to all other nodes in the cluster.- Specified by:
send
in interfaceCrossNodesRemoteBroadcaster
- Parameters:
event
- the event to send- Returns:
- true if the event was successfully propagated, false otherwise
-
getComponentAccessor
@NotNull public static @NotNull Optional<CrossNodesRemoteBroadcaster> getComponentAccessor()
-
-