public interface VirtualStore<E extends Event,D extends StoreDelegate<E>>
Modifier and Type | Method and Description |
---|---|
boolean |
hasDelegate(NetworkId networkId)
Indicates whether the store has a delegate.
|
void |
setDelegate(NetworkId networkId,
D delegate)
Sets the delegate on the store.
|
void |
unsetDelegate(NetworkId networkId,
D delegate)
Withdraws the delegate from the store.
|
void setDelegate(NetworkId networkId, D delegate)
networkId
- a virtual network identifierdelegate
- new store delegatejava.lang.IllegalStateException
- if a delegate is already
currently set on the store and is a different one thatvoid unsetDelegate(NetworkId networkId, D delegate)
networkId
- a virtual network identifierdelegate
- store delegate to withdrawjava.lang.IllegalArgumentException
- if the delegate is not
currently set on the storeboolean hasDelegate(NetworkId networkId)
networkId
- a virtual network identifier