TColumn - column typeTTable - table typeTRow - row typepublic class UserRowSync<TColumn extends UserColumn,TTable extends UserTable<TColumn>,TRow extends UserCoreRow<TColumn,TTable>> extends Object
| Modifier and Type | Class and Description |
|---|---|
protected class |
UserRowSync.RowCondition
Condition and row wrapper
|
| Modifier and Type | Field and Description |
|---|---|
protected Lock |
lock
Synchronous lock
|
protected Map<Long,UserRowSync.RowCondition> |
rows
Mapping between row ids and row conditions
|
| Modifier | Constructor and Description |
|---|---|
protected |
UserRowSync()
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
TRow |
getRowOrLock(long id)
Get the row if another same id request has been made by waiting until the
row has been set.
|
void |
setRow(long id,
TRow row)
Set the row id, row, and notify all waiting threads to retrieve the row.
|
protected Lock lock
protected Map<Long,UserRowSync.RowCondition> rows
public TRow getRowOrLock(long id)
setRow(long, UserCoreRow)
when complete.id - user row idsetRow(long, UserCoreRow)public void setRow(long id,
TRow row)
id - user row idrow - user row or nullCopyright © 2018 National Geospatial-Intelligence Agency. All rights reserved.