Interface DurableObjectNamespace

All Superinterfaces:
org.teavm.jso.JSObject

public interface DurableObjectNamespace extends org.teavm.jso.JSObject
A Durable Object binding. Declared with durableObject(), named DO_ followed by the class name.

One instance per id, in one location, with storage of its own. Two requests for the same id reach the same instance, which is what makes a Durable Object the place to put state that has to be consistent.

 DurableObjectStub counter = env.durableObject("DO_COUNTER").byName("global");
 Response current = counter.fetch(request);
Since:
1.0.0