Package s2.client

Class BasinClient

  • All Implemented Interfaces:
    java.lang.AutoCloseable
    Direct Known Subclasses:
    StreamClient

    public class BasinClient
    extends BaseClient
    Client for basin-level operations.
    • Method Detail

      • listStreams

        public com.google.common.util.concurrent.ListenableFuture<Paginated<StreamInfo>> listStreams​(ListStreamsRequest listStreamsRequest)
        List streams within the basin.
        Parameters:
        listStreamsRequest - the list streams request
        Returns:
        future of a paginated list of stream infos
      • createStream

        public com.google.common.util.concurrent.ListenableFuture<StreamInfo> createStream​(CreateStreamRequest createStreamRequest)
        Create a new stream within this basin.
        Parameters:
        createStreamRequest - the create stream request
        Returns:
        future of the resulting stream info
      • deleteStream

        public com.google.common.util.concurrent.ListenableFuture<java.lang.Void> deleteStream​(java.lang.String streamName)
        Delete a stream.

        Stream deletion is asynchronous, and may take a few minutes to complete.

        Parameters:
        streamName - the stream name
        Returns:
        future representing the completion of this action
      • getStreamConfig

        public com.google.common.util.concurrent.ListenableFuture<StreamConfig> getStreamConfig​(java.lang.String streamName)
        Get current config of a stream.
        Parameters:
        streamName - the stream name
        Returns:
        future of the stream config
      • reconfigureStream

        public com.google.common.util.concurrent.ListenableFuture<StreamConfig> reconfigureStream​(ReconfigureStreamRequest reconfigureStreamRequest)
        Reconfigure an existing stream.
        Parameters:
        reconfigureStreamRequest - the reconfigure stream request
        Returns:
        future of the resulting stream config