All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.hyperfoil.api.session.SharedData Maven / Gradle / Ivy

There is a newer version: 0.27
Show newest version
package io.hyperfoil.api.session;

/**
 * Data shared among sessions bound to the same {@link Session#executor() executor thread}.
 */
public interface SharedData {

   SharedMap newMap(String key);
   SharedMap pullMap(String key);
   SharedMap pullMap(String key, Access match, Object value);
   void pushMap(String key, SharedMap sharedMap);
   void releaseMap(String key, SharedMap map);

   void reserveMap(String key, Access match, int entries);

   interface SharedMap {
      void put(Access key, Object value);

      int size();

      Access key(int i);

      Object value(int i);

      int capacity();

      void clear();

      Object find(Access index);
   }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy