Class StreamStateStore

  • All Implemented Interfaces:
    com.google.common.util.concurrent.FutureCallback<StreamState>, StreamEventHandler

    public class StreamStateStore
    extends java.lang.Object
    implements StreamEventHandler
    Store and update available ranges (data already received) to system keyspace.
    • Constructor Detail

      • StreamStateStore

        public StreamStateStore()
    • Method Detail

      • isDataAvailable

        public boolean isDataAvailable​(java.lang.String keyspace,
                                       Token token)
        Check if given token's data is available in this node. This doesn't handle transientness in a useful way so it's only used by a legacy test
        Parameters:
        keyspace - keyspace name
        token - token to check
        Returns:
        true if given token in the keyspace is already streamed and ready to be served.
      • onSuccess

        public void onSuccess​(StreamState streamState)
        Specified by:
        onSuccess in interface com.google.common.util.concurrent.FutureCallback<StreamState>
      • onFailure

        public void onFailure​(java.lang.Throwable throwable)
        Specified by:
        onFailure in interface com.google.common.util.concurrent.FutureCallback<StreamState>