Class UpdatePeerStatus

java.lang.Object
net.lightapi.portal.covid.command.handler.UpdatePeerStatus
All Implemented Interfaces:
com.networknt.rpc.HybridHandler

public class UpdatePeerStatus extends Object implements com.networknt.rpc.HybridHandler
This handler updates the status for the peer on the map. We encourage owner to update its status; however, a lot of customers who are waiting to enter the grocery store might eager to update the status to avoid other people to join the line. This give us more updaters than the owners. We might give incentives to the users who are updating. or enable a hyper link to the update user to his/her website.
Author:
Steve Hu
  • Field Summary

    Fields inherited from interface com.networknt.rpc.HybridHandler

    ERROR_NOT_DEFINED, REQUEST_SUCCESS, STATUS_VALIDATION_ERROR
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    handle(io.undertow.server.HttpServerExchange exchange, Object input)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.networknt.rpc.HybridHandler

    getStatus, getStatus, validate
  • Constructor Details

    • UpdatePeerStatus

      public UpdatePeerStatus()
  • Method Details

    • handle

      public ByteBuffer handle(io.undertow.server.HttpServerExchange exchange, Object input)
      Specified by:
      handle in interface com.networknt.rpc.HybridHandler