Package com.vaadin

Class HazelcastBackend


  • public class HazelcastBackend
    extends com.vaadin.collaborationengine.Backend
    • Nested Class Summary

      • Nested classes/interfaces inherited from class com.vaadin.collaborationengine.Backend

        com.vaadin.collaborationengine.Backend.EventIdNotFoundException, com.vaadin.collaborationengine.Backend.EventLog, com.vaadin.collaborationengine.Backend.Snapshot
    • Constructor Summary

      Constructors 
      Constructor Description
      HazelcastBackend​(com.hazelcast.core.HazelcastInstance hz)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      com.vaadin.flow.shared.Registration addMembershipListener​(com.vaadin.collaborationengine.MembershipListener membershipListener)  
      java.util.UUID getNodeId()  
      java.util.concurrent.CompletableFuture<com.vaadin.collaborationengine.Backend.Snapshot> loadLatestSnapshot​(java.lang.String name)  
      com.vaadin.collaborationengine.Backend.EventLog openEventLog​(java.lang.String topicId)  
      java.util.concurrent.CompletableFuture<java.lang.Void> replaceSnapshot​(java.lang.String name, java.util.UUID expectedId, java.util.UUID newId, java.lang.String payload)  
      • Methods inherited from class com.vaadin.collaborationengine.Backend

        getCollaborationEngine, setCollaborationEngine
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • HazelcastBackend

        public HazelcastBackend​(com.hazelcast.core.HazelcastInstance hz)
    • Method Detail

      • addMembershipListener

        public com.vaadin.flow.shared.Registration addMembershipListener​(com.vaadin.collaborationengine.MembershipListener membershipListener)
        Specified by:
        addMembershipListener in class com.vaadin.collaborationengine.Backend
      • openEventLog

        public com.vaadin.collaborationengine.Backend.EventLog openEventLog​(java.lang.String topicId)
        Specified by:
        openEventLog in class com.vaadin.collaborationengine.Backend
      • getNodeId

        public java.util.UUID getNodeId()
        Specified by:
        getNodeId in class com.vaadin.collaborationengine.Backend
      • loadLatestSnapshot

        public java.util.concurrent.CompletableFuture<com.vaadin.collaborationengine.Backend.Snapshot> loadLatestSnapshot​(java.lang.String name)
        Specified by:
        loadLatestSnapshot in class com.vaadin.collaborationengine.Backend
      • replaceSnapshot

        public java.util.concurrent.CompletableFuture<java.lang.Void> replaceSnapshot​(java.lang.String name,
                                                                                      java.util.UUID expectedId,
                                                                                      java.util.UUID newId,
                                                                                      java.lang.String payload)
        Specified by:
        replaceSnapshot in class com.vaadin.collaborationengine.Backend