concept event in category apache pulsar

appears as: event, events, n event
Apache Pulsar in Action

This is an excerpt from Manning's book Apache Pulsar in Action.

  • Scalable storage: In order to provide consistent experiences for end users, data must be available even in the event of power failures or network connectivity issues. Pulsar’s scalable storage layer is able to expand to meet peak demand and support infinite data retention policies.
  • Listing 4.6 State Related Methods of the Context Object
    **
     * Increment the builtin distributed counter refered by key
     * @param key The name of the key
     * @param amount The amount to be incremented
     */
     void incrCounter(String key, long amount);
     
     /**
      * Retrieve the counter value for the key.
      *
      * @param key name of the key
      * @return the amount of the counter value for this key
      */
      long getCounter(String key);
     
     /**
      * Update the state value for the key.
      *
      * @param key name of the key
      * @param value state value of the key
      */
     void putState(String key, ByteBuffer value);
     
     /**
      * Retrieve the state value for the key.
      *
      * @param key name of the key
      * @return the state value for the key.
      */
      ByteBuffer getState(String key);