Package com.illumon.iris.db.v2
Class KeyedTableListener
java.lang.Object
com.illumon.iris.db.v2.KeyedTableListener
public class KeyedTableListener extends Object
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
KeyedTableListener.KeyEvent
static interface
KeyedTableListener.KeyUpdateListener
-
Constructor Summary
Constructors Constructor Description KeyedTableListener(QueryTable table, String... keyColumnNames)
-
Method Summary
Modifier and Type Method Description void
close()
long
getIndex(com.fishlib.datastructures.util.SmartKey key)
Object[]
getRow(com.fishlib.datastructures.util.SmartKey key)
Object[]
getRow(com.fishlib.datastructures.util.SmartKey key, String... columnNames)
Object[]
getRow(Object... keyValues)
Object[]
getRowAtIndex(long index)
Object[]
getRowAtIndex(long index, String... columnNames)
long
getTableRow(com.fishlib.datastructures.util.SmartKey key)
void
listenForUpdates()
void
subscribe(com.fishlib.datastructures.util.SmartKey key, KeyedTableListener.KeyUpdateListener listener)
void
subscribe(com.fishlib.datastructures.util.SmartKey key, KeyedTableListener.KeyUpdateListener listener, boolean replayInitialData)
void
unsubscribe(com.fishlib.datastructures.util.SmartKey key, KeyedTableListener.KeyUpdateListener listener)
-
Constructor Details
-
Method Details
-
listenForUpdates
public void listenForUpdates() -
close
public void close() -
getIndex
public long getIndex(com.fishlib.datastructures.util.SmartKey key) -
getRow
-
getRow
-
getRowAtIndex
-
getRow
-
getRowAtIndex
-
getTableRow
public long getTableRow(com.fishlib.datastructures.util.SmartKey key) -
subscribe
public void subscribe(com.fishlib.datastructures.util.SmartKey key, KeyedTableListener.KeyUpdateListener listener) -
subscribe
public void subscribe(com.fishlib.datastructures.util.SmartKey key, KeyedTableListener.KeyUpdateListener listener, boolean replayInitialData) -
unsubscribe
public void unsubscribe(com.fishlib.datastructures.util.SmartKey key, KeyedTableListener.KeyUpdateListener listener)
-