Worker SDK in Java
The SDK provides functionality to write a worker that:
- connects to a SpatialOS simulated world (see Connecting to SpatialOS)
- can subscribe to information for a part of the world (see Handling data received from SpatialOS)
- can send and receive component updates (see Sending data to SpatialOS)
Using the Worker SDK in Java
The Java API closely mirrors the C# API.
The most important units of functionality in the Java API are:
improbable.worker.Locator, which is responsible for querying for and connecting to remote cloud deployments.
improbable.worker.Connection, which represents a worker’s connection to a SpatialOS simulated world.
improbable.worker.Dispatcher, which is responsible for invoking user-provided callbacks based on data received from SpatialOS via the
improbable.worker.Entity, which is a container for the component data associated with a single entity.