The Worker SDK in Java is deprecated from version 14.3.0. We will remove it in version 15.0.0.
We continue to support the Worker SDK in Java in 14.x as outlined in our release policy. From 14.3.0 onwards, we will only add new features to the Worker SDK in Java at our discretion.
The SDK provides functionality to write a worker that:
- connects to a SpatialOS simulated world (see Connect to SpatialOS)
- can subscribe to information for a part of the world (see Handle data received from SpatialOS)
- can send and receive component updates (see Send data to SpatialOS)
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.
Updated about a year ago