public class PartitionDenylist
extends java.lang.Object
Constructor and Description |
---|
PartitionDenylist() |
Modifier and Type | Method and Description |
---|---|
boolean |
addKeyToDenylist(java.lang.String keyspace,
java.lang.String table,
java.nio.ByteBuffer key)
We expect the caller to confirm that we are working with a valid keyspace and table.
|
int |
getDeniedKeysInRangeCount(java.lang.String keyspace,
java.lang.String table,
AbstractBounds<PartitionPosition> range) |
int |
getDeniedKeysInRangeCount(TableId tid,
AbstractBounds<PartitionPosition> range) |
int |
getLoadAttempts() |
int |
getLoadSuccesses() |
void |
initialLoad()
Performs initial load of the partition denylist.
|
boolean |
isKeyPermitted(java.lang.String keyspace,
java.lang.String table,
java.nio.ByteBuffer key) |
boolean |
isKeyPermitted(TableId tid,
java.nio.ByteBuffer key) |
void |
load()
We need to fully rebuild a new cache to accommodate deleting items from the denylist and potentially shrinking
the max allowable size in the list.
|
boolean |
removeKeyFromDenylist(java.lang.String keyspace,
java.lang.String table,
java.nio.ByteBuffer key)
We expect the caller to confirm that we are working with a valid keyspace and table.
|
public int getLoadAttempts()
public int getLoadSuccesses()
public void initialLoad()
public void load()
public boolean addKeyToDenylist(java.lang.String keyspace, java.lang.String table, java.nio.ByteBuffer key)
public boolean removeKeyFromDenylist(java.lang.String keyspace, java.lang.String table, java.nio.ByteBuffer key)
public boolean isKeyPermitted(java.lang.String keyspace, java.lang.String table, java.nio.ByteBuffer key)
public boolean isKeyPermitted(TableId tid, java.nio.ByteBuffer key)
public int getDeniedKeysInRangeCount(java.lang.String keyspace, java.lang.String table, AbstractBounds<PartitionPosition> range)
public int getDeniedKeysInRangeCount(TableId tid, AbstractBounds<PartitionPosition> range)
Copyright © 2009- The Apache Software Foundation