Package io.temporal.internal.testservice
Class TestNexusEndpointStoreImpl
- java.lang.Object
-
- io.temporal.internal.testservice.TestNexusEndpointStoreImpl
-
- All Implemented Interfaces:
TestNexusEndpointStore,java.io.Closeable,java.lang.AutoCloseable
public class TestNexusEndpointStoreImpl extends java.lang.Object implements TestNexusEndpointStore
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 Constructor Description TestNexusEndpointStoreImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()io.temporal.api.nexus.v1.EndpointcreateEndpoint(io.temporal.api.nexus.v1.EndpointSpec spec)voiddeleteEndpoint(java.lang.String id, long version)io.temporal.api.nexus.v1.EndpointgetEndpoint(java.lang.String id)io.temporal.api.nexus.v1.EndpointgetEndpointByName(java.lang.String name)java.util.List<io.temporal.api.nexus.v1.Endpoint>listEndpoints(long pageSize, byte[] nextPageToken, java.lang.String name)io.temporal.api.nexus.v1.EndpointupdateEndpoint(java.lang.String id, long version, io.temporal.api.nexus.v1.EndpointSpec spec)voidvalidateEndpointSpec(io.temporal.api.nexus.v1.EndpointSpec spec)
-
-
-
Method Detail
-
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(java.lang.String id, long version, io.temporal.api.nexus.v1.EndpointSpec spec)- Specified by:
updateEndpointin interfaceTestNexusEndpointStore
-
deleteEndpoint
public void deleteEndpoint(java.lang.String id, long version)- Specified by:
deleteEndpointin interfaceTestNexusEndpointStore
-
getEndpoint
public io.temporal.api.nexus.v1.Endpoint getEndpoint(java.lang.String id)
- Specified by:
getEndpointin interfaceTestNexusEndpointStore
-
getEndpointByName
public io.temporal.api.nexus.v1.Endpoint getEndpointByName(java.lang.String name)
- Specified by:
getEndpointByNamein interfaceTestNexusEndpointStore
-
listEndpoints
public java.util.List<io.temporal.api.nexus.v1.Endpoint> listEndpoints(long pageSize, byte[] nextPageToken, java.lang.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 interfacejava.lang.AutoCloseable- Specified by:
closein interfacejava.io.Closeable- Specified by:
closein interfaceTestNexusEndpointStore
-
-