Package pubsub

Class Publisher

java.lang.Object
pubsub.Publisher

public class Publisher
extends java.lang.Object
  • Constructor Summary

    Constructors 
    Constructor Description
    Publisher​(AsyncCuratorFramework client)  
  • Method Summary

    Modifier and Type Method Description
    void publishInstance​(Instance instance)
    Publish the given instance using the Instance client template
    void publishInstances​(java.util.List<Instance> instances)
    Publish the given instances using the Instance client template in a transaction
    void publishLocationAvailable​(Group group, LocationAvailable locationAvailable)
    Publish the given LocationAvailable using the LocationAvailable client template
    void publishLocationsAvailable​(Group group, java.util.List<LocationAvailable> locationsAvailable)
    Publish the given LocationAvailables using the LocationAvailable client template in a transaction
    void publishUserCreated​(Group group, UserCreated userCreated)
    Publish the given UserCreated using the UserCreated client template
    void publishUsersCreated​(Group group, java.util.List<UserCreated> usersCreated)
    Publish the given UserCreateds using the UserCreated client template in a transaction

    Methods inherited from class java.lang.Object

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

  • Method Details

    • publishInstance

      public void publishInstance​(Instance instance)
      Publish the given instance using the Instance client template
      Parameters:
      instance - instance to publish
    • publishInstances

      public void publishInstances​(java.util.List<Instance> instances)
      Publish the given instances using the Instance client template in a transaction
      Parameters:
      instances - instances to publish
    • publishLocationAvailable

      public void publishLocationAvailable​(Group group, LocationAvailable locationAvailable)
      Publish the given LocationAvailable using the LocationAvailable client template
      Parameters:
      group - group
      locationAvailable - message to publish
    • publishUserCreated

      public void publishUserCreated​(Group group, UserCreated userCreated)
      Publish the given UserCreated using the UserCreated client template
      Parameters:
      group - group
      userCreated - message to publish
    • publishLocationsAvailable

      public void publishLocationsAvailable​(Group group, java.util.List<LocationAvailable> locationsAvailable)
      Publish the given LocationAvailables using the LocationAvailable client template in a transaction
      Parameters:
      group - group
      locationsAvailable - messages to publish
    • publishUsersCreated

      public void publishUsersCreated​(Group group, java.util.List<UserCreated> usersCreated)
      Publish the given UserCreateds using the UserCreated client template in a transaction
      Parameters:
      group - group
      usersCreated - messages to publish