Class TestNexusEndpointStoreImpl
java.lang.Object
io.temporal.internal.testservice.TestNexusEndpointStoreImpl
- All Implemented Interfaces:
TestNexusEndpointStore,Closeable,AutoCloseable
TestNexusEndpointStoreImpl is an in-memory implementation of Nexus endpoint CRUD operations for
use with the test server. Because conflict resolution is not required, there is no handling for
created or updated timestamps.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()io.temporal.api.nexus.v1.EndpointcreateEndpoint(io.temporal.api.nexus.v1.EndpointSpec spec) voiddeleteEndpoint(String id, long version) io.temporal.api.nexus.v1.EndpointgetEndpoint(String id) io.temporal.api.nexus.v1.EndpointgetEndpointByName(String name) List<io.temporal.api.nexus.v1.Endpoint> listEndpoints(long pageSize, byte[] nextPageToken, String name) io.temporal.api.nexus.v1.EndpointupdateEndpoint(String id, long version, io.temporal.api.nexus.v1.EndpointSpec spec) voidvalidateEndpointSpec(io.temporal.api.nexus.v1.EndpointSpec spec)
-
Constructor Details
-
TestNexusEndpointStoreImpl
public TestNexusEndpointStoreImpl()
-
-
Method Details
-
createEndpoint
public io.temporal.api.nexus.v1.Endpoint createEndpoint(io.temporal.api.nexus.v1.EndpointSpec spec) - Specified by:
createEndpointin interfaceTestNexusEndpointStore
-
updateEndpoint
public io.temporal.api.nexus.v1.Endpoint updateEndpoint(String id, long version, io.temporal.api.nexus.v1.EndpointSpec spec) - Specified by:
updateEndpointin interfaceTestNexusEndpointStore
-
deleteEndpoint
- Specified by:
deleteEndpointin interfaceTestNexusEndpointStore
-
getEndpoint
- Specified by:
getEndpointin interfaceTestNexusEndpointStore
-
getEndpointByName
- Specified by:
getEndpointByNamein interfaceTestNexusEndpointStore
-
listEndpoints
public List<io.temporal.api.nexus.v1.Endpoint> listEndpoints(long pageSize, byte[] nextPageToken, String name) - Specified by:
listEndpointsin interfaceTestNexusEndpointStore
-
validateEndpointSpec
public void validateEndpointSpec(io.temporal.api.nexus.v1.EndpointSpec spec) - Specified by:
validateEndpointSpecin interfaceTestNexusEndpointStore
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein interfaceTestNexusEndpointStore
-