Class 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.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void close()  
      io.temporal.api.nexus.v1.Endpoint createEndpoint​(io.temporal.api.nexus.v1.EndpointSpec spec)  
      void deleteEndpoint​(java.lang.String id, long version)  
      io.temporal.api.nexus.v1.Endpoint getEndpoint​(java.lang.String id)  
      io.temporal.api.nexus.v1.Endpoint getEndpointByName​(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.Endpoint updateEndpoint​(java.lang.String id, long version, io.temporal.api.nexus.v1.EndpointSpec spec)  
      void validateEndpointSpec​(io.temporal.api.nexus.v1.EndpointSpec spec)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • TestNexusEndpointStoreImpl

        public TestNexusEndpointStoreImpl()
    • Method Detail

      • createEndpoint

        public io.temporal.api.nexus.v1.Endpoint createEndpoint​(io.temporal.api.nexus.v1.EndpointSpec spec)
        Specified by:
        createEndpoint in interface TestNexusEndpointStore
      • updateEndpoint

        public io.temporal.api.nexus.v1.Endpoint updateEndpoint​(java.lang.String id,
                                                                long version,
                                                                io.temporal.api.nexus.v1.EndpointSpec spec)
        Specified by:
        updateEndpoint in interface TestNexusEndpointStore
      • listEndpoints

        public java.util.List<io.temporal.api.nexus.v1.Endpoint> listEndpoints​(long pageSize,
                                                                               byte[] nextPageToken,
                                                                               java.lang.String name)
        Specified by:
        listEndpoints in interface TestNexusEndpointStore
      • close

        public void close()
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface java.io.Closeable
        Specified by:
        close in interface TestNexusEndpointStore