
io.hyperfoil.api.session.SharedData Maven / Gradle / Ivy
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 - 2025 Weber Informatics LLC | Privacy Policy