public class StreamStateStore extends java.lang.Object implements StreamEventHandler
| Constructor and Description | 
|---|
| StreamStateStore() | 
| Modifier and Type | Method and Description | 
|---|---|
| java.util.Set<Range<Token>> | getAvailableRanges(java.lang.String keyspace,
                  IPartitioner partitioner) | 
| void | handleStreamEvent(StreamEvent event)When StreamSession completes, make all keyspaces/ranges in session available to be served. | 
| boolean | isDataAvailable(java.lang.String keyspace,
               Token token)Check if given token's data is available in this node. | 
| void | onFailure(java.lang.Throwable throwable) | 
| void | onSuccess(StreamState streamState) | 
public java.util.Set<Range<Token>> getAvailableRanges(java.lang.String keyspace, IPartitioner partitioner)
public boolean isDataAvailable(java.lang.String keyspace,
                               Token token)
keyspace - keyspace nametoken - token to checkpublic void handleStreamEvent(StreamEvent event)
handleStreamEvent in interface StreamEventHandlerevent - Stream event.StreamEvent.Typepublic void onSuccess(StreamState streamState)
onSuccess in interface com.google.common.util.concurrent.FutureCallback<StreamState>public void onFailure(java.lang.Throwable throwable)
onFailure in interface com.google.common.util.concurrent.FutureCallback<StreamState>Copyright © 2018 The Apache Software Foundation