Class RemoteClusterListener
- java.lang.Object
-
- org.infinispan.notifications.cachelistener.cluster.RemoteClusterListener
-
@ThreadSafe public class RemoteClusterListener extends java.lang.Object
A listener that installed locally on each node when a cluster listener is installed on a given node.- Since:
- 7.0
- Author:
- wburns
-
-
Constructor Summary
Constructors Constructor Description RemoteClusterListener(java.util.UUID id, Address origin, CacheNotifier cacheNotifier, CacheManagerNotifier cacheManagerNotifier, ClusterEventManager eventManager, boolean sync)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.UUID
getId()
Address
getOwnerAddress()
java.util.concurrent.CompletionStage<java.lang.Void>
handleClusterEvents(CacheEntryEvent event)
java.util.concurrent.CompletionStage<java.lang.Void>
removeListener()
java.util.concurrent.CompletionStage<java.lang.Void>
transactionCompleted(TransactionCompletedEvent event)
java.util.concurrent.CompletionStage<java.lang.Void>
viewChange(ViewChangedEvent event)
-
-
-
Constructor Detail
-
RemoteClusterListener
public RemoteClusterListener(java.util.UUID id, Address origin, CacheNotifier cacheNotifier, CacheManagerNotifier cacheManagerNotifier, ClusterEventManager eventManager, boolean sync)
-
-
Method Detail
-
getId
public java.util.UUID getId()
-
getOwnerAddress
public Address getOwnerAddress()
-
viewChange
public java.util.concurrent.CompletionStage<java.lang.Void> viewChange(ViewChangedEvent event)
-
removeListener
public java.util.concurrent.CompletionStage<java.lang.Void> removeListener()
-
handleClusterEvents
public java.util.concurrent.CompletionStage<java.lang.Void> handleClusterEvents(CacheEntryEvent event) throws java.lang.Exception
- Throws:
java.lang.Exception
-
transactionCompleted
public java.util.concurrent.CompletionStage<java.lang.Void> transactionCompleted(TransactionCompletedEvent event) throws java.lang.Exception
- Throws:
java.lang.Exception
-
-