public class AuthorityConsumer extends Object implements Consumer
| Modifier and Type | Field and Description |
|---|---|
protected AuthorityService |
authorityService |
protected ItemService |
itemService |
protected Set<UUID> |
itemsToReindex
A set of item IDs who's metadata needs to be reindexed
|
protected Set<UUID> |
itemsToUpdateAuthority
A set of all item IDs installed which need their authority updated
|
| Constructor and Description |
|---|
AuthorityConsumer() |
| Modifier and Type | Method and Description |
|---|---|
void |
consume(Context ctx,
Event event)
Consume an event; events may get filtered at the dispatcher level, hiding
it from the consumer.
|
void |
end(Context ctx)
Signal that there are no more events queued in this event stream and
event processing for the preceding consume calls should be finished up.
|
void |
finish(Context ctx)
Finish - free any allocated resources.
|
void |
initialize()
Initialize - allocate any resources required to operate.
|
protected Set<UUID> itemsToUpdateAuthority
protected Set<UUID> itemsToReindex
protected ItemService itemService
protected AuthorityService authorityService
public void initialize()
throws Exception
Consumerinitialize in interface ConsumerExceptionpublic void consume(Context ctx, Event event) throws Exception
Consumerpublic void end(Context ctx) throws Exception
ConsumerCopyright © 2017 DuraSpace. All rights reserved.