java.lang.Object
com.aoindustries.aoserv.master.InvalidateList
In the request lifecycle, table invalidations occur after the database connection has been committed
and released. This ensures that all data is available for the processes that react to the table
updates. For efficiency, each host and account will only be notified once per table per
request.
- Author:
- AO Industries, Inc.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final List
<Account.Name> Indicates that all hosts or account.Account should receive the invalidate signal.static final IntList
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addTable
(DatabaseAccess db, Table.TableId tableId, Account.Name account, int host, boolean recurse) void
addTable
(DatabaseAccess db, Table.TableId tableId, Account.Name account, IntCollection hosts, boolean recurse) void
addTable
(DatabaseAccess db, Table.TableId tableId, Collection<Account.Name> accounts, int host, boolean recurse) void
addTable
(DatabaseAccess db, Table.TableId tableId, Collection<Account.Name> accounts, IntCollection hosts, boolean recurse) static Collection
<Account.Name> getAccountCollection
(Account.Name... accounts) getAffectedAccounts
(Table.TableId tableId) getAffectedHosts
(Table.TableId tableId) static IntCollection
getHostCollection
(int... hosts) void
boolean
isInvalid
(Table.TableId tableId) void
reset()
Resets back to default state.
-
Field Details
-
allAccounts
Indicates that all hosts or account.Account should receive the invalidate signal. -
allHosts
-
-
Constructor Details
-
InvalidateList
public InvalidateList()
-
-
Method Details
-
reset
public void reset()Resets back to default state. -
addTable
public void addTable(DatabaseAccess db, Table.TableId tableId, Account.Name account, int host, boolean recurse) throws IOException, SQLException - Throws:
IOException
SQLException
-
addTable
public void addTable(DatabaseAccess db, Table.TableId tableId, Collection<Account.Name> accounts, int host, boolean recurse) throws IOException, SQLException - Throws:
IOException
SQLException
-
addTable
public void addTable(DatabaseAccess db, Table.TableId tableId, Account.Name account, IntCollection hosts, boolean recurse) throws IOException, SQLException - Throws:
IOException
SQLException
-
addTable
public void addTable(DatabaseAccess db, Table.TableId tableId, Collection<Account.Name> accounts, IntCollection hosts, boolean recurse) throws IOException, SQLException - Throws:
IOException
SQLException
-
getAffectedAccounts
-
getAffectedHosts
-
invalidateMasterCaches
public void invalidateMasterCaches() -
isInvalid
-
getAccountCollection
-
getHostCollection
- Throws:
IOException
SQLException
-